本文整理汇总了PHP中getDenyRead函数的典型用法代码示例。如果您正苦于以下问题:PHP getDenyRead函数的具体用法?PHP getDenyRead怎么用?PHP getDenyRead使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getDenyRead函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: foreach
</tr>
<tr>
<td <?php
echo $style;
?>
align="center">
<div id="idToolbarContainer">
<div id="idToolbarSlider"<?php
echo $top;
?>
>
<table id="idToolbarTray" border="0" cellpadding="2" cellspacing="2" width="100%">
<?php
foreach ($nav as $module) {
$dir = $module['mod_directory'];
if (!getDenyRead($dir)) {
$icon = $module['mod_ui_icon'];
$name = $AppUI->_($module['mod_ui_name']);
$sel = '';
if ($m == $dir) {
define('DP_CURRENT_MODULE_ICON', $icon);
$name = '<b>' . $name . '</b>';
$sel = ' id="idSelected"';
}
?>
<tr<?php
echo $sel;
?>
onclick="go('index.php?m=<?php
echo $dir;
?>
开发者ID:n2i,项目名称:xvnkb,代码行数:31,代码来源:header.php
示例2: intval
}
// retrieve any state parameters
if (isset($_GET['tab'])) {
$AppUI->setState('TaskLogVwTab', $_GET['tab']);
}
$tab = $AppUI->getState('TaskLogVwTab') !== NULL ? $AppUI->getState('TaskLogVwTab') : 0;
// get the prefered date format
$df = $AppUI->getPref('SHDATEFORMAT');
//Also view the time
$df .= " " . $AppUI->getPref('TIMEFORMAT');
$start_date = intval($obj->task_start_date) ? new CDate($obj->task_start_date) : null;
$end_date = intval($obj->task_end_date) ? new CDate($obj->task_end_date) : null;
$start_date_ir = intval($obj->task_start_date_ir) ? new CDate($obj->task_start_date_ir) : null;
$end_date_ir = intval($obj->task_end_date_ir) ? new CDate($obj->task_end_date_ir) : null;
//check permissions for the associated project
$canReadProject = !getDenyRead('projects', $obj->task_project);
// get the users on this task
$q->addTable('users', 'u');
$q->addTable('user_tasks', 't');
$q->leftJoin('contacts', 'c', 'user_contact = contact_id');
$q->addQuery('u.user_id, u.user_username, contact_email');
$q->addWhere('t.task_id = ' . $task_id);
$q->addWhere('t.user_id = u.user_id');
$q->addOrder('u.user_username');
$sql = $q->prepare();
$q->clear();
$users = db_loadList($sql);
$durnTypes = dPgetSysVal('TaskDurationType');
// setup the title block
$titleBlock = new CTitleBlock('View Task', 'applet-48.png', $m, "{$m}.{$a}");
$titleBlock->addCell();
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:31,代码来源:view.php
示例3: count
//grab hours per day from config
$min_hours_day = $AppUI->cfg['daily_working_hours'];
$can_edit_other_timesheets = $TIMECARD_CONFIG['minimum_edit_level'] >= $AppUI->user_type;
$show_other_worksheets = $TIMECARD_CONFIG['minimum_see_level'] >= $AppUI->user_type;
$show_possible_hours_worked = $TIMECARD_CONFIG['show_possible_hours_worked'];
//print "<pre>";
//print_r($AppUI);
//print "</pre>";
//compute hours/week from config
$min_hours_week = count(explode(",", dPgetConfig("cal_working_days"))) * $min_hours_day;
// get date format
$df = $AppUI->getPref('SHDATEFORMAT');
if (isset($_GET['user_id'])) {
$sql = "SELECT user_company FROM users WHERE user_id = " . $_GET['user_id'];
$company_id = db_loadResult($sql);
if (getDenyRead("companies", $company_id)) {
$AppUI->setMsg('Access denied', UI_MSG_ERROR);
$AppUI->redirect();
}
$AppUI->setState('TimecardSelectedUser', $_GET['user_id']);
}
$user_id = $AppUI->getState('TimecardSelectedUser') ? $AppUI->getState('TimecardSelectedUser') : $AppUI->user_id;
$AppUI->savePlace();
if (isset($_GET['start_date'])) {
$AppUI->setState('TimecardStartDate', $_GET['start_date']);
}
$start_day = new CDate($AppUI->getState('TimecardStartDate') ? $AppUI->getState('TimecardStartDate') : NULL);
//set the time to noon to combat a php date() function bug that was adding an hour.
$date = $start_day->format('%Y-%m-%d') . ' 12:00:00';
$start_day->setDate($date, DATE_FORMAT_ISO);
$today_weekday = $start_day->getDayOfWeek();
开发者ID:n2i,项目名称:xvnkb,代码行数:31,代码来源:vw_timecard.php
示例4: CTitleBlock
<?php
/* HELPDESK $Id: index.php,v 1.30 2005/11/10 22:03:20 pedroix Exp $ */
// check permissions for this module
$canReadModule = !getDenyRead($m);
if (!$canReadModule) {
$AppUI->redirect("m=public&a=access_denied");
}
$AppUI->savePlace();
if (isset($_GET['tab'])) {
$AppUI->setState('HelpDeskIdxTab', $_GET['tab']);
}
$tab = $AppUI->getState('HelpDeskIdxTab') !== NULL ? $AppUI->getState('HelpDeskIdxTab') : 0;
// Setup the title block
$titleBlock = new CTitleBlock('Help Desk', 'helpdesk.png', $m, 'ID_HELP_HELPDESK_IDX');
if ($canEdit) {
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new item') . '" />', '', '<form action="?m=helpdesk&a=addedit" method="post">', '</form>');
}
$titleBlock->addCrumb("?m=helpdesk", 'home');
$titleBlock->addCrumb("?m=helpdesk&a=list", 'list');
$titleBlock->addCrumb("?m=helpdesk&a=reports", 'reports');
$titleBlock->show();
$item_perms = getItemPerms();
$sql = "SELECT COUNT(item_id)\n FROM helpdesk_items\n WHERE {$item_perms}";
$numtotal = db_loadResult($sql);
/*
* Unassigned = 0
* Open = 1
* Closed = 2
* On hold = 3
* Delete = 4
开发者ID:slawekmikula,项目名称:dotproject,代码行数:31,代码来源:index.php
示例5: die
<?php
// check access to files module
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly');
}
global $AppUI, $m, $obj, $task_id;
if (!getDenyRead('links')) {
if (!getDenyEdit('links')) {
echo '<a href="./index.php?m=links&a=addedit&project_id=' . $obj->task_project . '&link_task=' . $task_id . '">' . $AppUI->_('Attach a link') . '</a>';
}
echo dPshowImage(dPfindImage('stock_attach-16.png', $m), 16, 16, '');
$showProject = false;
$project_id = $obj->task_project;
include DP_BASE_DIR . '/modules/links/index_table.php';
}
开发者ID:magsilva,项目名称:dotproject,代码行数:16,代码来源:tasks_tab.links.php
示例6: CCompany
$obj = new CCompany();
$companies = $obj->getAllowedRecords($AppUI->user_id, 'company_id,company_name', 'company_name');
$filters2 = arrayMerge(array('all' => $AppUI->_('All Companies', UI_OUTPUT_RAW)), $companies);
// setup the title block
$titleBlock = new CTitleBlock('Tasks', 'applet-48.png', $m, "{$m}.{$a}");
// patch 2.12.04 text to search entry box
if (isset($_POST['searchtext'])) {
$AppUI->setState('searchtext', $_POST['searchtext']);
}
$search_text = $AppUI->getState('searchtext') ? $AppUI->getState('searchtext') : '';
$search_text = dPformSafe($search_text, true);
$titleBlock->addCell(' ' . $AppUI->_('Search') . ':');
$titleBlock->addCell('<input type="text" class="text" SIZE="20" name="searchtext" onChange="document.searchfilter.submit();" value=' . "'{$search_text}'" . 'title="' . $AppUI->_('Search in name and description fields') . '"/>
<!--<input type="submit" class="button" value=">" title="' . $AppUI->_('Search in name and description fields') . '"/>-->', '', '<form action="?m=tasks" method="post" id="searchfilter">', '</form>');
// Let's see if this user has admin privileges
if (!getDenyRead("admin")) {
$titleBlock->addCell();
$titleBlock->addCell($AppUI->_("User") . ":");
$user_list = $perms->getPermittedUsers('tasks');
$titleBlock->addCell(arraySelect($user_list, "user_id", "size='1' class='text' onChange='document.userIdForm.submit();'", $user_id, false), "", "<form action='?m=tasks' method='post' name='userIdForm'>", "</form>");
}
$titleBlock->addCell();
$titleBlock->addCell($AppUI->_('Company') . ':');
$titleBlock->addCell(arraySelect($filters2, 'f2', 'size=1 class=text onChange="document.companyFilter.submit();"', $f2, false), '', '<form action="?m=tasks" method="post" name="companyFilter">', '</form>');
$titleBlock->addCell();
if ($canEdit && $project_id) {
$titleBlock->addCell('<input type="submit" class="button" value="' . $AppUI->_('new task') . '">', '', '<form action="?m=tasks&a=addedit&task_project=' . $project_id . '" method="post">', '</form>');
}
$titleBlock->show();
if (dPgetParam($_GET, 'inactive', '') == 'toggle') {
$AppUI->setState('inactive', $AppUI->getState('inactive') == -1 ? 0 : -1);
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:index.php
示例7: canAccess
public function canAccess($user_id)
{
$q = new DBQuery();
// Let's see if this user has admin privileges
if (!getDenyRead('admin')) {
return true;
}
switch ($this->task_access) {
case self::ACCESS_PUBLIC:
$retval = true;
break;
case self::ACCESS_PROTECTED:
$q->addTable('users');
$q->addQuery('user_company');
$q->addWhere('user_id=' . (int) $user_id . ' OR user_id=' . (int) $this->task_owner);
$user_owner_companies = $q->loadColumn();
$q->clear();
$company_match = true;
foreach ($user_owner_companies as $current_company) {
$company_match = $company_match && (!isset($last_company) || $last_company == $current_company);
$last_company = $current_company;
}
case self::ACCESS_PARTICIPANT:
$company_match = isset($company_match) ? $company_match : true;
$q->addTable('user_tasks');
$q->addQuery('COUNT(task_id)');
$q->addWhere('user_id=' . (int) $user_id . ' AND task_id=' . (int) $this->task_id);
$count = $q->loadResult();
$q->clear();
$retval = $company_match && $count > 0 || $this->task_owner == $user_id;
break;
case self::ACCESS_PRIVATE:
$retval = $this->task_owner == $user_id;
break;
default:
$retval = false;
break;
}
return $retval;
}
开发者ID:joly,项目名称:web2project,代码行数:40,代码来源:tasks.class.php
示例8: die
<?php
/* $Id: viewer.php,v 1.25.6.4 2007/03/28 15:00:52 cyberhorse Exp $ */
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
//view posts
$forum_id = isset($_GET["forum_id"]) ? (int) $_GET["forum_id"] : 0;
$message_id = isset($_GET["message_id"]) ? (int) $_GET["message_id"] : 0;
$post_message = isset($_GET["post_message"]) ? $_GET["post_message"] : 0;
$f = dpGetParam($_POST, 'f', 0);
// check permissions
$canRead = !getDenyRead($m, $forum_id);
$canEdit = !getDenyEdit($m, $forum_id);
if (!$canRead || $post_message & !$canEdit) {
$AppUI->redirect("m=public&a=access_denied");
}
$df = $AppUI->getPref('SHDATEFORMAT');
$tf = $AppUI->getPref('TIMEFORMAT');
$q = new DBQuery();
$q->addTable('forums');
$q->addTable('projects', 'p');
$q->addTable('users', 'u');
$q->addQuery('forum_id, forum_project, forum_description, forum_owner, forum_name,
forum_create_date, forum_last_date, forum_message_count, forum_moderated,
user_username, contact_first_name, contact_last_name,
project_name, project_color_identifier');
$q->addJoin('contacts', 'con', 'contact_id = user_contact');
$q->addWhere("user_id = forum_owner");
$q->addWhere("forum_id = {$forum_id}");
$q->addWhere("forum_project = project_id");
开发者ID:magsilva,项目名称:dotproject,代码行数:31,代码来源:viewer.php
示例9: die
die('You should not access this file directly.');
}
// load the companies class
require_once $AppUI->getModuleClass('companies');
if (isset($_POST['company_id'])) {
$AppUI->setState('DeptIdxCompany', intval($_POST['company_id']));
}
$company = $company_id = $AppUI->getState('DeptIdxCompany') !== NULL ? $AppUI->getState('DeptIdxCompany') : $AppUI->user_company;
$company_prefix = 'company_';
if (isset($_POST['department'])) {
$AppUI->setState('DeptIdxDepartment', $_POST['department']);
//if department is set, ignore the company_id field
unset($company_id);
}
$department = $AppUI->getState('DeptIdxDepartment') !== NULL ? $AppUI->getState('DeptIdxDepartment') : ($AppUI->user_department > 0 ? $AppUI->user_department : $company_prefix . $AppUI->user_company);
$canRead = !getDenyRead($m, $department);
if (!$canRead) {
$AppUI->redirect('m=public&a=access_denied');
}
$AppUI->savePlace();
//if $department contains the $company_prefix string that it's requesting a company and not a department. So, clear the
// $department variable, and populate the $company_id variable.
if (!(strpos($department, $company_prefix) === false)) {
$company_id = substr($department, strlen($company_prefix));
$AppUI->setState('DeptIdxCompany', $company_id);
unset($department);
}
$obj = new CCompany();
$q = new DBQuery();
$q->addTable('companies');
$q->addQuery('company_id, company_name');
开发者ID:magsilva,项目名称:dotproject,代码行数:31,代码来源:index.php
示例10: get_actual_end_date_pd
function get_actual_end_date_pd($task_id, $task)
{
global $AppUI;
$q = new DBQuery();
$mods = $AppUI->getActiveModules();
if (!empty($mods['history']) && !getDenyRead('history')) {
$q->addQuery('MAX(history_date) as actual_end_date');
$q->addTable('history');
$q->addWhere('history_table=\'tasks\' AND history_item=' . $task_id);
} else {
$q->addQuery('MAX(task_log_date) AS actual_end_date');
$q->addTable('task_log');
$q->addWhere('task_log_task = ' . $task_id);
}
$task_log_end_date = $q->loadResult();
$edate = $task_log_end_date;
$edate = $edate > $task->task_end_date || $task->task_percent_complete == 100 ? $edate : $task->task_end_date;
return $edate;
}
开发者ID:hoodoogurus,项目名称:dotprojecteap,代码行数:19,代码来源:projectdesigner.class.php
示例11: foreach
<tr>
<td valign="top">
<?php
if (!$dialog) {
// left side navigation menu
?>
<table cellspacing=0 cellpadding=2 border=0 height="600">
<tr>
<td><img src="images/shim.gif" width="70" height="3"></td>
<td rowspan="100"><img src="images/shim.gif" width="10" height="100"></td>
</tr>
<?php
$nav = $AppUI->getMenuModules();
$s = '';
foreach ($nav as $module) {
if (!getDenyRead($module['mod_directory'])) {
$s .= '<tr><td align="center" valign="middle" class="nav">' . '<table cellspacing=0 cellpadding=0 border=0><tr><td class="clsBtnOff">' . '<a href="?m=' . $module['mod_directory'] . '">' . '<img src="' . dPfindImage($module['mod_ui_icon'], $module['mod_directory']) . '" alt="" border="0" width="30" height="30"></a></td></tr></table>' . $AppUI->_($module['mod_ui_name']) . "</td></tr>\n";
}
}
echo $s;
?>
<tr height="100%">
<td> <img src="images/shim.gif" width="7" height="10"></td>
</tr>
</table>
<?php
}
// END DIALOG
?>
</td>
<td valign="top" align="left" width="100%">
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:header.php
示例12: die
<?php
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
// Add / Edit contact
$risk_id = dPgetParam($_GET, 'risk_id', 0);
// check permissions
$denyView = getDenyRead($m, $risk_id);
if ($denyView) {
$AppUI->redirect("m=help&a=access_denied");
}
$riskProbability = dPgetSysVal('RiskProbability');
$riskStatus = dPgetSysVal('RiskStatus');
$riskImpact = dPgetSysVal('RiskImpact');
$riskDuration = array(1 => 'Hours', 24 => 'Days', 168 => 'Weeks');
$q = new DBQuery();
$q->addQuery('user_id');
$q->addQuery('CONCAT( contact_first_name, \' \', contact_last_name)');
$q->addTable('users');
$q->leftJoin('contacts', 'c', 'user_contact = contact_id');
$q->addOrder('contact_first_name, contact_last_name');
$users = $q->loadHashList();
//$users = db_loadHashList( $sql );
$q->clear();
$q->addQuery('project_id, project_name');
$q->addTable('projects');
$projects = $q->loadHashList();
$projects[0] = '';
//Pull contact information
$q->clear();
开发者ID:slawekmikula,项目名称:dotproject,代码行数:31,代码来源:view.php
示例13: canAccess
function canAccess($user_id)
{
//echo intval($this->task_access);
// Let's see if this user has admin privileges
if (!getDenyRead("admin")) {
return true;
}
switch ($this->task_access) {
case 0:
// public
return true;
break;
case 1:
// protected
$sql = "SELECT user_company FROM users WHERE user_id={$user_id}";
$user_company = db_loadResult($sql);
$sql = "SELECT user_company FROM users WHERE user_id={$this->task_owner}";
$owner_company = db_loadResult($sql);
//echo "$user_company,$owner_company";die;
$sql = "SELECT COUNT(*) FROM user_tasks WHERE user_id={$user_id} AND task_id={$this->task_id}";
$count = db_loadResult($sql);
return $owner_company == $user_company && $count > 0 || $this->task_owner == $user_id;
break;
case 2:
// participant
$sql = "SELECT COUNT(*) FROM user_tasks WHERE user_id={$user_id} AND task_id={$this->task_id}";
$count = db_loadResult($sql);
return $count > 0 || $this->task_owner == $user_id;
break;
case 3:
// private
return $this->task_owner == $user_id;
break;
}
}
开发者ID:juliogallardo1326,项目名称:proc,代码行数:35,代码来源:tasks.class.php
示例14: canAccess
function canAccess($user_id)
{
$q =& new DBQuery();
// Let's see if this user has admin privileges
if (!getDenyRead('admin')) {
return true;
}
switch ($this->task_access) {
case 0:
// public
$retval = true;
break;
case 1:
// protected
$q->addTable('users');
$q->addQuery('user_company');
$q->addWhere('user_id=' . $user_id . ' OR user_id=' . $this->task_owner);
$sql = $q->prepare();
$q->clear();
$user_owner_companies = db_loadColumn($sql);
$company_match = true;
foreach ($user_owner_companies as $current_company) {
$company_match = $company_match && (!isset($last_company) || $last_company == $current_company);
$last_company = $current_company;
}
case 2:
// participant
$company_match = isset($company_match) ? $company_match : true;
$q->addTable('user_tasks');
$q->addQuery('COUNT(*)');
$q->addWhere('user_id=' . $user_id . ' AND task_id=' . $this->task_id);
$sql = $q->prepare();
$q->clear();
$count = db_loadResult($sql);
$retval = $company_match && $count > 0 || $this->task_owner == $user_id;
break;
case 3:
// private
$retval = $this->task_owner == $user_id;
break;
default:
$retval = false;
break;
}
return $retval;
}
开发者ID:magsilva,项目名称:dotproject,代码行数:46,代码来源:tasks.class.php
示例15: CTitleBlock_core
/**
* The constructor
*
* Assigns the title, icon, module and help reference. If the user does not
* have permission to view the help module, then the context help icon is
* not displayed.
*/
function CTitleBlock_core($title, $icon = '', $module = '', $helpref = '')
{
$this->title = $title;
$this->icon = $icon;
$this->module = $module;
$this->helpref = $helpref;
$this->cells1 = array();
$this->cells2 = array();
$this->crumbs = array();
$this->showhelp = !getDenyRead('help');
}
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:18,代码来源:ui.class_conCambiosEnCrumbs.php
示例16: getDenyRead
<?php
/* HELPDESK $Id: index.php,v 1.8 2007/08/22 07:17:43 arcoz67 Exp $ */
// Register position of New Task Log tab so we can call it correctly from the vw_timecard report
// If you change the tab order you'll need to modify this global in two places below
// (There is probably a better way to do this...)
global $newTLogTabNum;
$newTLogTabNum = 3;
// check permissions
$denyRead = getDenyRead($m);
$denyEdit = getDenyEdit($m);
if ($denyRead) {
$AppUI->redirect("m=help&a=access_denied");
}
$TIMECARD_CONFIG = array();
require_once "./modules/timecard/config.php";
// setup the title block
$titleBlock = new CTitleBlock('Time Card', 'TimeCard.png', $m, "{$m}.{$a}");
$titleBlock->show();
if (isset($_GET['tab'])) {
$AppUI->setState('TimecardVwTab', $_GET['tab']);
}
$tab = $AppUI->getState('TimecardVwTab') ? $AppUI->getState('TimecardVwTab') : 0;
$tabBox = new CTabBox("?m=timecard", "./modules/timecard/", $tab);
$tabBox->add('vw_timecard', 'Weekly Time Card');
$tabBox->add('vw_calendar_by_user', 'Task Logs by Date');
if ($TIMECARD_CONFIG['minimum_report_level'] >= $AppUI->user_type) {
$tabBox->add('vw_weekly_by_user', 'Summary by User');
$tabBox->add('vw_weekly_by_project', 'Summary by Project');
$newTLogTabNum = 5;
}
开发者ID:slawekmikula,项目名称:dotproject,代码行数:31,代码来源:index.php
示例17: die
<?php
/* DEPARTMENTS $Id: view.php,v 1.21.6.7 2007/09/12 23:22:58 merlinyoda Exp $ */
if (!defined('DP_BASE_DIR')) {
die('You should not access this file directly.');
}
global $department, $min_view;
$dept_id = isset($_GET['dept_id']) ? $_GET['dept_id'] : (isset($department) ? $department : 0);
// check permissions
$canRead = !getDenyRead($m, $dept_id);
$canEdit = !getDenyEdit($m, $dept_id);
if (!$canRead) {
$AppUI->redirect('m=public&a=access_denied');
}
$AppUI->savePlace();
if (isset($dept_id) && $dept_id > 0) {
$AppUI->setState('DeptIdxDepartment', $dept_id);
}
$dept_id = $AppUI->getState('DeptIdxDepartment') !== NULL ? $AppUI->getState('DeptIdxDepartment') : ($AppUI->user_department > 0 ? $AppUI->user_department : $company_prefix . $AppUI->user_company);
if (isset($_GET['tab'])) {
$AppUI->setState('DeptVwTab', $_GET['tab']);
}
$tab = $AppUI->getState('DeptVwTab') !== NULL ? $AppUI->getState('DeptVwTab') : 0;
if ($dept_id > 0) {
// pull data
$q = new DBQuery();
$q->addTable('companies', 'com');
$q->addTable('departments', 'dep');
$q->addQuery('dep.*, company_name');
$q->addQuery('con.contact_first_name');
$q->addQuery('con.contact_last_name');
开发者ID:magsilva,项目名称:dotproject,代码行数:31,代码来源:view.php
示例18: sprintf
<?php
// get GETPARAMETER for contact_id
$contact_id = 1;
$canRead = !getDenyRead('contacts');
if (!$canRead) {
$AppUI->redirect("m=public&a=access_denied");
}
if (1 == 1) {
// Fields 1 - 5
$text = sprintf("%s", "\"Title\",\"First Name\",\"Middle Name\",\"Last Name\",\"Suffix\",");
// Fields 6 - 10
$text .= sprintf("%s", "\"Company\",\"Department\",\"Job Title\",\"Business Street\",\"Business Street 2\",");
// Fields 11 - 15
$text .= sprintf("%s", "\"Business Street 3\",\"Business City\",\"Business State\",\"Business Postal Code\",\"Business Country\",");
// Fields 16 - 20
$text .= sprintf("%s", "\"Home Street\",\"Home Street 2\",\"Home Street 3\",\"Home City\",\"Home State\",");
// Fields 21 - 25
$text .= sprintf("%s", "\"Home Postal Code\",\"Home Country\",\"Other Street\",\"Other Street 2\",\"Other Street 3\",");
// Fields 26 - 30
$text .= sprintf("%s", "\"Other City\",\"Other State\",\"Other Postal Code\",\"Other Country\",\"Assistant's Phone\",");
// Fields 31 - 35
$text .= sprintf("%s", "\"Business Fax\",\"Business Phone\",\"Business Phone 2\",\"Callback\",\"Car Phone\",");
// Fields 36 - 40
$text .= sprintf("%s", "\"Company Main Phone\",\"Home Fax\",\"Home Phone\",\"Home Phone 2\",\"ISDN\",");
// Fields 41 - 45
$text .= sprintf("%s", "\"Mobile Phone\",\"Other Fax\",\"Other Phone\",\"Pager\",\"Primary Phone\",");
// Fields 46 - 50
$text .= sprintf("%s", "\"Radio Phone\",\"TTY/TDD Phone\",\"Telex\",\"Account\",\"Anniversary\",");
// Fields 51 - 55
$text .= sprintf("%s", "\"Assistant's Name\",\"Billing Information\",\"Birthday\",\"Categories\",\"Children\",");
开发者ID:juliogallardo1326,项目名称:proc,代码行数:31,代码来源:csvexport.php
示例19: dPshowImage
<?php
// check access to files module
global $AppUI, $m, $company_id, $dPconfig;
if (!getDenyRead('files')) {
if (!getDenyEdit('files')) {
echo '<a href="./index.php?m=files&a=addedit">' . $AppUI->_('Attach a file') . '</a>';
}
echo dPshowImage(dPfindImage('stock_attach-16.png', $m), 16, 16, '');
$showProject = true;
include $dPconfig['root_dir'] . '/modules/files/index_table.php';
}
开发者ID:Esleelkartea,项目名称:gestion-de-primeras-muestras,代码行数:12,代码来源:companies_tab.files.php
示例20: dPgetSysVal
<?php
/* HELPDESK $Id: helpdesk.class.php,v 1.58 2005/04/25 19:04:55 zibas Exp $ */
require_once $AppUI->getSystemClass('dp');
require_once $AppUI->getSystemClass('libmail');
require_once "helpdesk.functions.php";
require_once "./modules/helpdesk/config.php";
global $m;
// Make sure we can read the module
if (getDenyRead($m)) {
$AppUI->redirect("m=public&a=access_denied");
}
// Define log types
define("STATUS_LOG", 1);
define("TASK_LOG", 2);
// Pull in some standard arrays
$ict = dPgetSysVal('HelpDeskCallType');
$ics = dPgetSysVal('HelpDeskSource');
$ios = dPgetSysVal('HelpDeskOS');
$iap = dPgetSysVal('HelpDeskApplic');
$ipr = dPgetSysVal('HelpDeskPriority');
$isv = dPgetSysVal('HelpDeskSeverity');
$ist = dPgetSysVal('HelpDeskStatus');
$isa = dPgetSysVal('HelpDeskAuditTrail');
$field_event_map = array(1 => "item_title", 2 => "item_requestor", 3 => "item_requestor_email", 4 => "item_requestor_phone", 5 => "item_assigned_to", 6 => "item_notify", 7 => "item_company_id", 8 => "item_project_id", 9 => "item_calltype", 10 => "item_source", 11 => "item_status", 12 => "item_priority", 13 => "item_severity", 14 => "item_os", 15 => "item_application", 16 => "item_summary");
// Help Desk class
class CHelpDeskItem extends CDpObject
{
var $item_id = NULL;
var $item_title = NULL;
var $item_summary = NULL;
开发者ID:srinivasulurao,项目名称:jonel,代码行数:31,代码来源:helpdesk.class.php
注:本文中的getDenyRead函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论