本文整理汇总了PHP中Button_Check函数的典型用法代码示例。如果您正苦于以下问题:PHP Button_Check函数的具体用法?PHP Button_Check怎么用?PHP Button_Check使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Button_Check函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getBlocks
$smarty->assign('BLOCKS', getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields));
$smarty->assign('BASBLOCKS', getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields, 'BAS'));
$smarty->assign('ADVBLOCKS', getBlocks($currentModule, $disp_view, $focus->mode, $focus->column_fields, 'ADV'));
$smarty->assign('OP_MODE', $disp_view);
$smarty->assign('APP', $app_strings);
$smarty->assign('MOD', $mod_strings);
$smarty->assign('MODULE', $currentModule);
// TODO: Update Single Module Instance name here.
$smarty->assign('SINGLE_MOD', 'SINGLE_' . $currentModule);
$smarty->assign('CATEGORY', $category);
$smarty->assign("THEME", $theme);
$smarty->assign('IMAGE_PATH', "themes/{$theme}/images/");
$smarty->assign('ID', $focus->id);
$smarty->assign('MODE', $focus->mode);
$smarty->assign('CREATEMODE', isset($_REQUEST['createmode']) ? vtlib_purify($_REQUEST['createmode']) : '');
$smarty->assign('CHECK', Button_Check($currentModule));
$smarty->assign('DUPLICATE', $isduplicate);
if ($focus->mode == 'edit' || $isduplicate) {
$recordName = array_values(getEntityName($currentModule, $record));
$recordName = $recordName[0];
$smarty->assign('NAME', $recordName);
$smarty->assign('UPDATEINFO', updateInfo($record));
}
if ($focus->mode == 'edit') {
$associated_prod = getAssociatedProducts("PurchaseOrder", $focus);
$smarty->assign('ASSOCIATEDPRODUCTS', $associated_prod);
} elseif (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
$smarty->assign('ASSOCIATEDPRODUCTS', $PO_associated_prod);
$smarty->assign('AVAILABLE_PRODUCTS', 'true');
$smarty->assign('MODE', $focus->mode);
}
示例2: getListViewHeader
}
$listview_header = getListViewHeader($focus, "SalesOrder", $url_string, $sorder, $order_by, "", $oCustomView);
$smarty->assign("LISTHEADER", $listview_header);
$listview_header_search = getSearchListHeaderValues($focus, "SalesOrder", $url_string, $sorder, $order_by, "", $oCustomView);
$smarty->assign("SEARCHLISTHEADER", $listview_header_search);
$listview_entries = getListViewEntries($focus, "SalesOrder", $list_result, $navigation_array, '', '&return_module=SalesOrder&return_action=index', 'EditView', 'Delete', $oCustomView);
$smarty->assign("LISTENTITY", $listview_entries);
$smarty->assign("SELECT_SCRIPT", $view_script);
//Added to select Multiple records in multiple pages
$smarty->assign("SELECTEDIDS", vtlib_purify($_REQUEST['selobjs']));
$smarty->assign("ALLSELECTEDIDS", vtlib_purify($_REQUEST['allselobjs']));
$smarty->assign("CURRENT_PAGE_BOXES", implode(array_keys($listview_entries), ";"));
$navigationOutput = getTableHeaderSimpleNavigation($navigation_array, $url_string, "SalesOrder", 'index', $viewid);
$alphabetical = AlphabeticalSearch($currentModule, 'index', 'subject', 'true', 'basic', "", "", "", "", $viewid);
$fieldnames = getAdvSearchfields($module);
$criteria = getcriteria_options();
$smarty->assign("CRITERIA", $criteria);
$smarty->assign("FIELDNAMES", $fieldnames);
$smarty->assign("ALPHABETICAL", $alphabetical);
$smarty->assign("NAVIGATION", $navigationOutput);
$smarty->assign("CUSTOMVIEW_OPTION", $customviewcombo_html);
$smarty->assign("VIEWID", $viewid);
$smarty->assign("BUTTONS", $other_text);
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$_SESSION[$currentModule . '_listquery'] = $list_query;
if (isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') {
$smarty->display("ListViewEntries.tpl");
} else {
$smarty->display("ListView.tpl");
}
示例3: getParentTab
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************/
require_once 'Smarty_setup.php';
require_once 'user_privileges/default_module_view.php';
global $mod_strings, $app_strings, $currentModule, $current_user, $theme, $singlepane_view;
$category = getParentTab();
$action = vtlib_purify($_REQUEST['action']);
$record = vtlib_purify($_REQUEST['record']);
$isduplicate = vtlib_purify($_REQUEST['isDuplicate']);
$parenttab = getParentTab();
if ($singlepane_view == 'true' && $action == 'CallRelatedList') {
header("Location:index.php?action=DetailView&module={$currentModule}&record={$record}&parenttab={$parenttab}");
} else {
$tool_buttons = Button_Check($currentModule);
$focus = CRMEntity::getInstance($currentModule);
if ($record != '') {
$focus->retrieve_entity_info($record, $currentModule);
$focus->id = $record;
}
$smarty = new vtigerCRM_Smarty();
if ($isduplicate == 'true') {
$focus->id = '';
}
if (isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') {
$smarty->assign("OP_MODE", vtlib_purify($_REQUEST['mode']));
}
if (!$_SESSION['rlvs'][$currentModule]) {
unset($_SESSION['rlvs']);
}
示例4: array
$lvEntries = $controller->getListViewEntries($focus, $select_module, $list_result, $navigation_array, true);
}
$smarty->assign("NAVIGATION", $navigationOutput);
$smarty->assign("RECORD_COUNTS", $record_string);
//to get the field name that mentions the module
$query = "select fieldname from vtiger_entityname where modulename =?";
$module_fielaname = $adb->query_result($adb->pquery($query, array($select_module)), 0, 'fieldname');
if (strpos($module_fielaname, ',')) {
$field_array = explode(',', $module_fielaname);
$index_field = $field_array[0];
} else {
$index_field = $module_fielaname;
}
$alphabetical = AlphabeticalSearch($currentModule, 'index', $index_field, 'true', 'basic', "", "", "", "", $viewid);
$category = getParentTab();
$check_button = Button_Check($_REQUEST['module']);
$check_button['EditView'] = 'no';
$smarty->assign("CHECK", $check_button);
$smarty->assign("ALPHABETICAL", $alphabetical);
$smarty->assign("NUMBER_MODULES", $noofrows);
$smarty->assign("MODULE_NAME", $module_name);
$smarty->assign("SELECTED_MODULE", $select_module);
$smarty->assign("MODULE_DATA", $rb_listview_header);
$smarty->assign("MOD", $mod_strings);
$smarty->assign("MODULE", $currentModule);
$smarty->assign("CATEGORY", $category);
$smarty->assign("THEME", $theme);
$smarty->assign("IMAGE_PATH", $image_path);
$smarty->assign("APP", $app_strings);
$smarty->assign("CMOD", return_module_language($current_language, $select_module));
$smarty->assign("lvEntries", $lvEntries);
示例5: parse_calendardate
$list_report_form->assign("REPORTTOTHTML", $totalhtml);
$list_report_form->assign("FOLDERID", $folderid);
$list_report_form->assign("DATEFORMAT", $current_user->date_format);
$list_report_form->assign("JS_DATEFORMAT", parse_calendardate($app_strings['NTC_DATE_FORMAT']));
if ($modules_export_permitted == true) {
$list_report_form->assign("EXPORT_PERMITTED", "YES");
} else {
$list_report_form->assign("EXPORT_PERMITTED", "NO");
}
$rep_in_fldr = $ogReport->sgetRptsforFldr($folderid);
for ($i = 0; $i < count($rep_in_fldr); $i++) {
$rep_id = $rep_in_fldr[$i]['reportid'];
$rep_name = $rep_in_fldr[$i]['reportname'];
$reports_array[$rep_id] = $rep_name;
}
$list_report_form->assign('CHECK', Button_Check($ogReport->primodule));
if ($_REQUEST['mode'] != 'ajax') {
$list_report_form->assign("REPINFOLDER", $reports_array);
include 'modules/Vtiger/header.php';
$list_report_form->display('ReportRun.tpl');
} else {
$list_report_form->display('ReportRunContents.tpl');
}
} else {
if ($_REQUEST['mode'] != 'ajax') {
include 'modules/Vtiger/header.php';
}
echo "<table border='0' cellpadding='5' cellspacing='0' width='100%' height='450px'><tr><td align='center'>";
echo "<div style='border: 3px solid rgb(153, 153, 153); background-color: rgb(255, 255, 255); width: 80%; position: relative; z-index: 10000000;'>\n\n\t\t<table border='0' cellpadding='5' cellspacing='0' width='98%'>\n\t\t<tbody><tr>\n\t\t<td rowspan='2' width='11%'><img src='" . vtiger_imageurl('denied.gif', $theme) . "' ></td>\n\t\t<td style='border-bottom: 1px solid rgb(204, 204, 204);' nowrap='nowrap' width='70%'><span class='genHeaderSmall'>" . $mod_strings['LBL_NO_ACCESS'] . " : " . implode(",", $restrictedmodules) . " </span></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td class='small' align='right' nowrap='nowrap'>\n\t\t<a href='javascript:window.history.back();'>{$app_strings['LBL_GO_BACK']}</a><br>\t\t\t\t\t\t\t\t \t\t </td>\n\t\t</tr>\n\t\t</tbody></table>\n\t\t</div>";
echo "</td></tr></table>";
}
示例6: Button_Check
} else {
$user_view_type = $current_user->id;
}
}
if (strtolower(trim($user_view_type)) == "me") {
$user_view_type = $current_user->id;
}
if ($user_view_type == $current_user->id) {
$smarty->assign('SHOW_ONLY_ME', 'true');
}
$smarty->assign('USER_VIEW_TYPE', $user_view_type);
$Users = $Calendar4You->GetCalendarUsersData();
$smarty->assign('CALENDAR_USERS', $Users);
$smarty->assign('CURRENT_USER_ID', $current_user->id);
if (isset($tool_buttons) == false) {
$tool_buttons = Button_Check('Calendar');
}
$smarty->assign('CHECK', $tool_buttons);
$calendar_arr = array();
$calendar_arr['IMAGE_PATH'] = $image_path;
/* fix (for Ticket ID:2259 GA Calendar Default View not working) given by dartagnanlaf START --integrated by Minnie */
$views = array('day', 'week', 'month', 'year');
if (empty($mysel) || !in_array($mysel, $views)) {
if ($current_user->activity_view == "This Year") {
$mysel = 'year';
} else {
if ($current_user->activity_view == "This Month") {
$mysel = 'month';
} else {
if ($current_user->activity_view == "This Week") {
$mysel = 'week';