本文整理汇总了PHP中get_admin_link函数的典型用法代码示例。如果您正苦于以下问题:PHP get_admin_link函数的具体用法?PHP get_admin_link怎么用?PHP get_admin_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_admin_link函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: AND
if (tep_not_null($account_number)) {
$where_filter .= " AND account_number\t=\t'" . $account_number . "' ";
}
if (tep_not_null($keyword)) {
$where_filter .= " AND (firstname LIKE '" . $keyword . "%' OR lastname LIKE '" . keyword . "%' OR account_name LIKE '" . $keyword . "%')";
}
postAssign($smarty);
break;
}
$smarty->assign('link_user', get_admin_link(PAGE_USERS, tep_get_all_get_params(array('action', 'module', 'page'))));
$sql_user = "SELECT * FROM " . _TABLE_USERS . " WHERE 1 {$where_filter} ";
$sql_user_page = "SELECT * FROM " . _TABLE_USERS . " WHERE 1 {$where_filter} ORDER BY signup_date DESC, account_name ASC, firstname ASC, lastname ASC ";
$user_query = db_query($sql_user);
$user_numbers = db_num_rows($user_query);
$userpage =& new Paginator($_GET['pg'], $user_numbers);
$userpage->set_Limit(25);
$userpage->pagename = get_admin_link(PAGE_USERS, tep_get_all_get_params(array('pg', 'x', 'y', 'action', 'module', 'page')));
$userpage->set_Links(6);
$limit1 = $userpage->getRange1();
$limit2 = $userpage->getRange2();
$sql_user_page .= " LIMIT {$limit1}, {$limit2}";
$user_page_query = db_query($sql_user_page);
// get smarty user list
$user_array = array();
while ($user = db_fetch_array($user_page_query)) {
$users_array[] = $user;
}
$smarty->assign('page_links', $userpage->getPageLinks());
$smarty->assign('users', $users_array);
// get all user users
$_html_main_content = $smarty->fetch('users/list.html');
开发者ID:rongandat,项目名称:ookcart-project,代码行数:31,代码来源:list.php
示例2: switch
<?php
if ($_POST['action'] == 'ajax') {
$ajaxaction = $_POST['ajaxaction'];
switch ($ajaxaction) {
case 'getDeleteForm':
$adminid = $_POST['adminid'];
$admininfo = db_fetch_array(db_query("SELECT admin_id, admin_username FROM " . _TABLE_ADMINS . " WHERE admin_id='" . $adminid . "'"));
$smarty->assign('link_admins', get_admin_link(PAGE_ADMIN_ACCOUNTS, tep_get_all_get_params(array('action', 'module', 'page'))));
$smarty->assign('admininfo', $admininfo);
echo $smarty->fetch('admins/deleteform.html');
break;
}
die;
}
开发者ID:rongandat,项目名称:e-global-cya,代码行数:15,代码来源:ajax.php
示例3: get_admin_link
<?php
include 'includes/admin_login_check.php';
$smarty->assign('link_new_language', get_admin_link(PAGE_LANGUAGE_NEW, tep_get_all_get_params(array('action', 'module', 'page'))));
$smarty->assign('back_link', get_admin_link(PAGE_LANGUAGES, tep_get_all_get_params(array('action', 'module', 'page'))));
$status_options = array(0 => TEXT_INACTIVE, 1 => TEXT_ACTIVE);
$smarty->assign('status_options', $status_options);
if ($_POST['action'] == 'process') {
$language_code = db_prepare_input($_POST['language_code']);
$validator->validateGeneral('Language Name', $language_name, _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Language Code', $language_code, _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Language Directory', $language_directory, _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Language Icon', $language_image, _ERROR_FIELD_EMPTY);
if (count($validator->errors) == 0) {
// create new member
$language_data_array = array('language_code' => $language_code, 'language_name' => $language_name, 'language_directory' => $language_directory, 'language_image' => $language_image, 'language_status' => $language_status, 'sort_order' => $sort_order);
db_perform(_TABLE_LANGUAGES, $language_data_array);
tep_redirect(get_admin_link(PAGE_LANGUAGES, tep_get_all_get_params(array('action', 'module', 'page'))));
} else {
postAssign($smarty);
$smarty->assign('validerrors', $validator->errors);
}
}
$_html_main_content = $smarty->fetch('langs/new.html');
开发者ID:rongandat,项目名称:e-global-cya,代码行数:24,代码来源:new.php
示例4: get_admin_link
echo MNU_ADMIN_USERS;
?>
</a></li>
</ul>
</div>
<div align="center">Payment</div>
<ul id="leftMenu">
<li><a href="<?php
echo get_admin_link(PAGE_CURRENCIES);
?>
"><?php
echo MNU_ADMIN_CURRENCIES;
?>
</a></li>
<li><a href="<?php
echo get_admin_link(PAGE_ADD_FUNDS);
?>
"><?php
echo MNU_ADMIN_ADD_FUNDS;
?>
</a></li>
<li><a href="<?php
echo get_admin_link(PAGE_TRANSACTIONS);
?>
"><?php
echo MNU_ADMIN_TRANSACTIONS;
?>
</a></li>
</ul>
</div>
</div>
开发者ID:rongandat,项目名称:ookcart-project,代码行数:31,代码来源:left.php
示例5: array
$is_topic = (int) $_POST['is_topic'];
$validator->validateGeneral('Template Key', $emailtemplate_key, _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Template Title', $emailtemplates_title[$languages_id], _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Template Subject', $emailtemplates_subject[$languages_id], _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Template Content', $emailtemplates_content[$languages_id], _ERROR_FIELD_EMPTY);
if (count($validator->errors) == 0) {
// create new member
$emailtemplate_data_array = array('emailtemplate_key' => $emailtemplate_key, 'emailtemplate_status' => $emailtemplate_status, 'is_html_email' => $is_html_email);
db_perform(_TABLE_EMAILTEMPLATES, $emailtemplate_data_array, 'update', " emailtemplates_id='" . $emailtemplateID . "'");
// emailtemplate description
for ($i = 0; $i < count($languages); $i++) {
$lang_id = $languages[$i]['id'];
$emailtemplate_description_data_array = array('language_id' => $lang_id, 'emailtemplate_title' => $emailtemplates_title[$lang_id], 'emailtemplate_subject' => $emailtemplates_subject[$lang_id], 'emailtemplate_content' => $emailtemplates_content[$lang_id]);
db_perform(_TABLE_EMAILTEMPLATES_DESCRIPTION, $emailtemplate_description_data_array, 'update', " emailtemplates_id='" . $emailtemplateID . "' and language_id='" . $lang_id . "'");
}
tep_redirect(get_admin_link(PAGE_EMAILTEMPLATES, tep_get_all_get_params(array('action', 'module', 'page'))));
} else {
postAssign($smarty);
for ($i = 0; $i < count($languages); $i++) {
$emailtemplates_content[$languages[$i]['id']] = html_entity_decode($_POST['emailtemplates_content'][$languages[$i]['id']]);
$smarty->assign('emailtemplates_content', $emailtemplates_content);
$emailtemplates_usage[$languages[$i]['id']] = $_POST['emailtemplates_usage'][$languages[$i]['id']];
$smarty->assign('emailtemplates_usage', $emailtemplates_usage);
$emailtemplates_subject[$languages[$i]['id']] = $_POST['emailtemplates_subject'][$languages[$i]['id']];
$smarty->assign('emailtemplates_subject', $emailtemplates_subject);
$emailtemplates_title[$languages[$i]['id']] = $_POST['emailtemplates_title'][$languages[$i]['id']];
$smarty->assign('emailtemplates_title', $emailtemplates_title);
}
$smarty->assign('validerrors', $validator->errors);
}
} else {
开发者ID:rongandat,项目名称:e-global-cya,代码行数:31,代码来源:edit.php
示例6: get_admin_link
$smarty->assign('action_link', get_admin_link(PAGE_EDIT_INFO, 'action=process&info_id=' . $info_id, '&pg=' . $pg));
$smarty->assign('back_link', get_admin_link(PAGE_INFORS, 'pg=' . $pg));
if ($_GET['action'] == 'process') {
$info_key = $_POST['info_key'];
$info_content = $_POST['info_content'];
$validator->validateGeneral(ERROR_FIELD_KEY, $info_key, _ERROR_FIELD_EMPTY);
$validator->validateGeneral('Content', $info_content, _ERROR_FIELD_EMPTY);
if (!$validator->foundErrors()) {
$info_data = array('info_key' => $info_key, 'info_content' => addslashes(htmlentities($info_content)), 'info_title' => addslashes(htmlentities($_POST['info_title'])), 'info_description' => $_POST['info_description'], 'info_usage' => $_POST['info_usage']);
if ($info_id > 0) {
// update
db_perform(_TABLE_INFO_TEMPLATES, $info_data, 'update', 'info_id=' . $info_id);
} else {
db_perform(_TABLE_INFO_TEMPLATES, $info_data);
}
tep_redirect(get_admin_link(PAGE_INFORS, 'pg=' . $pg));
} else {
postAssign($smarty);
$smarty->assign('validerrors', $validator->errors);
}
} else {
if ($info_id > 0) {
$sql_info = "SELECT * FROM " . _TABLE_INFO_TEMPLATES . " WHERE info_id='" . $info_id . "'";
$info = db_fetch_array(db_query($sql_info));
$info['info_title'] = stripslashes($info['info_title']);
$info['info_content'] = stripslashes($info['info_content']);
$smarty->assign('PAGE_HEADING', HEADING_EDIT_INFO);
postAssign($smarty, $info);
} else {
$smarty->assign('PAGE_HEADING', HEADING_NEW_INFO);
}
开发者ID:rongandat,项目名称:e-global-cya,代码行数:31,代码来源:newinfo.php
示例7: get_admin_link
<li class="docs_menu"><?php
echo get_admin_link('system', 'System Editor', 'system');
?>
</li>
<li class="docs_menu"><?php
echo get_admin_link('ports', 'Port Editor', 'ports');
?>
</li>
<li class="docs_menu"><?php
echo get_admin_link('goods', 'Goods Editor', 'goods');
?>
</li>
<li class="docs_menu"><?php
echo get_admin_link('research', 'Base Research', 'research');
?>
</li>
<li class="docs_menu"><?php
echo get_admin_link('build', 'Base Construction', 'build');
?>
</li>
<li class="docs_menu"><?php
echo get_admin_link('gold', 'Gold Keys', 'gold');
?>
</li>
<li class="docs_menu"><?php
echo get_admin_link('news', 'News Desk', 'news');
?>
</li>
</ul>
开发者ID:Redacted-Games-LLC,项目名称:Merchant-Empires,代码行数:29,代码来源:menu.php
示例8: getDeleteConfirmForm
<link rel="stylesheet" type="text/css" href="templates/css/tabcontent.css">
<script type="text/javascript" src="includes/javascript/tabcontent.js"></script>
<script type="text/javascript">
function getDeleteConfirmForm(security_questionid)
{
$.post('<?php
echo get_admin_link(PAGE_SECURITY_QUESTION_AJAX, tep_get_all_get_params(array('action', 'module', 'page')));
?>
',{action:'ajax', ajaxaction:'getDeleteForm',security_questionid:security_questionid}, function(data)
{
$("#ajaxContent").html(data);
$("#ajaxContent").fadeIn();
}
);
}
// close delete new confirmform
function closeConfirmForm()
{
$("#ajaxContent").fadeOut();
}
</script>
<!-- Load TinyMCE -->
<script type="text/javascript" src="../includes/js/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
$().ready(function() {
$('textarea.tinymce').tinymce({
// Location of TinyMCE script
script_url : '../includes/js/tiny_mce/tiny_mce.js',
开发者ID:rongandat,项目名称:e-global-cya,代码行数:31,代码来源:header_init.php
示例9: db_query
include 'includes/admin_login_check.php';
include _CLASSES_DIR . 'paginator.php';
if ($_GET['action'] == 'delete') {
$info_id = $_GET['info_id'];
$sql_delete = "DELETE FROM " . _TABLE_INFO_TEMPLATES . " WHERE info_id='" . $info_id . "'";
db_query($sql_delete);
}
$smarty->assign('link_new_info', get_admin_link(PAGE_NEW_INFO, 'pg=' . $_GET['pg']));
$smarty->assign('link_infos', get_admin_link(PAGE_INFORS, 'pg=' . $_GET['pg']));
$sql_infos = "SELECT * FROM " . _TABLE_INFO_TEMPLATES . " WHERE 1 {$where_filter} ";
$sql_infos_page = "SELECT * FROM " . _TABLE_INFO_TEMPLATES . " WHERE 1 {$where_filter} ORDER BY info_key";
$infos_query = db_query($sql_infos);
$info_numbers = db_num_rows($infos_query);
$infopage =& new Paginator($_GET['pg'], $info_numbers);
$infopage->set_Limit(20);
$infopage->pagename = get_admin_link(PAGE_INFORS, tep_get_all_get_params(array('pg', 'x', 'y')));
$infopage->set_Links(6);
$limit1 = $infopage->getRange1();
$limit2 = $infopage->getRange2();
$sql_infos_page .= " LIMIT {$limit1}, {$limit2}";
$info_page_query = db_query($sql_infos_page);
// get smarty infos list
$infos_array = array();
while ($info = db_fetch_array($info_page_query)) {
$info['info_url'] = get_admin_link(PAGE_EDIT_INFO, 'info_id=' . $info['info_id']);
$infos_array[] = $info;
}
$smarty->assign('page_links', $infopage->getPageLinks());
$smarty->assign('infors', $infos_array);
$_html_main_content = $smarty->fetch('infors/list.html');
开发者ID:rongandat,项目名称:e-global-cya,代码行数:30,代码来源:list.php
示例10: checkAdminAutoLogin
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr><td class="headerbg" width="100%" ><?php
if (!tep_session_is_registered('admin_login_id')) {
checkAdminAutoLogin();
} else {
// admin logged
echo '<span style="float:right" class="whiteText"><strong>' . TEXT_WELCOME . $admin_login_username . '</strong> <a href="' . get_admin_link(PAGE_ADMIN_LOGOUT) . '" class="linkWhite">' . TEXT_LOGOUT . '</a></span>';
}
?>
</td></tr>
</table>
开发者ID:rongandat,项目名称:e-global-cya,代码行数:11,代码来源:header.php
示例11: tep_session_register
// password passed ==> correct account
$admin_login_id = $admin_info['admin_id'];
$admin_login_username = $admin_info['admin_username'];
tep_session_register('admin_login_id');
tep_session_register('admin_login_username');
// set cookies for autologin
if ($_POST['remember_me']) {
/// tep_setcookie("login_email",$login_email , time()+60*60*24*100, HTTP_COOKIE_PATH, HTTP_COOKIE_DOMAIN);
// tep_setcookie("login_password",$login_password, time()+60*60*24*100, HTTP_COOKIE_PATH, HTTP_COOKIE_DOMAIN);
setcookie("admin_login_username", $login_username, time() + 60 * 60 * 24 * 30, "/");
setcookie("admin_login_password", $login_password, time() + 60 * 60 * 24 * 30, "/");
}
if (sizeof($navigation->snapshot) > 0) {
$origin_href = get_admin_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
tep_redirect($origin_href);
} else {
tep_redirect(get_admin_link(PAGE_DEFAULT));
}
}
} else {
$validator->addError('Account', ERROR_INVALID_ACCOUNT);
}
if (count($validator->errors) == 0) {
// create new admin
} else {
postAssign($smarty);
$smarty->assign('validerrors', $validator->errors);
}
}
$_html_main_content = $smarty->fetch('home/login.html');
开发者ID:rongandat,项目名称:e-global-cya,代码行数:31,代码来源:login.php
示例12: postAssign
if (tep_not_null($to_account)) {
$where_filter .= " AND to_account LIKE '" . $to_account . "%' ";
}
if (tep_not_null($note)) {
$where_filter .= " AND transaction_memo LIKE '%" . $note . "%' ";
}
postAssign($smarty);
break;
}
$smarty->assign('link_transaction', get_admin_link(PAGE_TRANSACTIONS, tep_get_all_get_params(array('action', 'module', 'page'))));
$sql_transaction = "SELECT * FROM " . _TABLE_TRANSACTIONS . " WHERE 1 {$where_filter} ";
$sql_transaction_page = "SELECT * FROM " . _TABLE_TRANSACTIONS . " WHERE 1 {$where_filter} ORDER BY transaction_time DESC, transaction_id DESC";
$transaction_query = db_query($sql_transaction);
$transaction_numbers = db_num_rows($transaction_query);
$transactionpage =& new Paginator($_GET['pg'], $transaction_numbers);
$transactionpage->set_Limit(25);
$transactionpage->pagename = get_admin_link(PAGE_TRANSACTIONS, tep_get_all_get_params(array('pg', 'x', 'y', 'action', 'module', 'page')));
$transactionpage->set_Links(6);
$limit1 = $transactionpage->getRange1();
$limit2 = $transactionpage->getRange2();
$sql_transaction_page .= " LIMIT {$limit1}, {$limit2}";
$transaction_page_query = db_query($sql_transaction_page);
// get smarty transaction list
$transaction_array = array();
while ($transaction = db_fetch_array($transaction_page_query)) {
$transactions_array[] = $transaction;
}
$smarty->assign('page_links', $transactionpage->getPageLinks());
$smarty->assign('transactions', $transactions_array);
// get all transaction transactions
$_html_main_content = $smarty->fetch('transactions/history.html');
开发者ID:rongandat,项目名称:e-global-cya,代码行数:31,代码来源:history.php
示例13: tep_session_destroy
}
if ($SESSION_USER_AGENT != $http_user_agent) {
tep_session_destroy();
tep_redirect(get_admin_link(PAGE_LOGIN));
}
}
// verify the IP address if the feature is enabled
if (SESSION_CHECK_IP_ADDRESS == 'True') {
$ip_address = tep_get_ip_address();
if (!tep_session_is_registered('SESSION_IP_ADDRESS')) {
$SESSION_IP_ADDRESS = $ip_address;
tep_session_register('SESSION_IP_ADDRESS');
}
if ($SESSION_IP_ADDRESS != $ip_address) {
tep_session_destroy();
tep_redirect(get_admin_link(PAGE_LOGIN));
}
}
// END sesctions ----------------
// navigation history
if (tep_session_is_registered('navigation')) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory();
$navigation->unserialize($broken_navigation);
}
} else {
tep_session_register('navigation');
$navigation = new navigationHistory();
}
$navigation->add_current_page();
开发者ID:rongandat,项目名称:ookcart-project,代码行数:31,代码来源:page_init.php
示例14: db_prepare_input
if ($_GET['action'] == 'process') {
$admin_username = db_prepare_input(trim($_POST['admin_username']));
$admin_contactname = db_prepare_input(trim($_POST['admin_contactname']));
$admin_email = db_prepare_input($_POST['admin_email']);
$admin_password = db_prepare_input(trim($_POST['admin_password']));
$confirm_password = db_prepare_input(trim($_POST['confirm_password']));
if ($validator->validateGeneral(ERROR_FIELD_ADMIN_USERNAME, $admin_username, _ERROR_FIELD_EMPTY)) {
// check if the email avaible
$sql_username = "SELECT admin_id\tFROM " . _TABLE_ADMINS . " WHERE admin_username='" . $admin_username . "'";
if (db_num_rows(db_query($sql_username)) > 0) {
// email existed
$validator->addError(ERROR_FIELD_ADMIN_USERNAME, ERROR_ADMIN_USERNAME_NOT_AVAIABLE);
}
}
$validator->validateGeneral(ERROR_FIELD_ADMIN_CONTACTNAME, $admin_contactname, _ERROR_FIELD_EMPTY);
$validator->validateEmail(ERROR_FIELD_ADMIN_EMAIL, $admin_email, _ERROR_EMAIL_ADDRESS);
if ($validator->validateMinLength(ERROR_FIELD_ADMIN_PASSWORD, $admin_password, 5, sprintf(_ERROR_MIN_LENGTH, 5, strlen($admin_password)))) {
$validator->validateEqual(ERROR_FIELD_ADMIN_CONFIRM_PASSWORD, $admin_password, $confirm_password, ERROR_CONFIRM_PASSWORD);
}
if (count($validator->errors) == 0) {
// create new member
// create new admin info
$admin_data_array = array('admin_username' => $admin_username, 'admin_contactname' => $admin_contactname, 'admin_email' => $admin_email, 'admin_password' => encrypt_password($admin_password));
db_perform(_TABLE_ADMINS, $admin_data_array);
tep_redirect(get_admin_link(PAGE_ADMIN_ACCOUNTS, 'pg=' . $pg));
} else {
postAssign($smarty);
$smarty->assign('validerrors', $validator->errors);
}
}
$_html_main_content = $smarty->fetch('admins/new.html');
开发者ID:rongandat,项目名称:e-global-cya,代码行数:31,代码来源:new.php
注:本文中的get_admin_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论