当前位置: 首页>>代码示例>>PHP>>正文


PHP adminPage类代码示例

本文整理汇总了PHP中adminPage的典型用法代码示例。如果您正苦于以下问题:PHP adminPage类的具体用法?PHP adminPage怎么用?PHP adminPage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了adminPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ctl_kft

 function ctl_kft(){
     parent::adminPage();
     $this->kft=&$this->system->loadModel('service/kft');
     $this->certi_id=$this->kft->getCerti();
     $this->token=$this->kft->getToken();
     $this->API_URL='http://api-client.shopex.cn/api.php';
 }
开发者ID:noikiy,项目名称:cxe,代码行数:7,代码来源:ctl.kft.php

示例2: admin_sales_ctl

 function admin_sales_ctl()
 {
     parent::adminPage();
     $appmgr = $this->system->loadModel('system/appmgr');
     $tb_api =& $appmgr->load('tb_sales_download');
     $this->tb =& $tb_api;
 }
开发者ID:noikiy,项目名称:shopex_tmall,代码行数:7,代码来源:admin.sales_ctl.php

示例3: ctl_certificate

 function ctl_certificate()
 {
     parent::adminPage();
     $this->lang = 'zh-cn';
     $this->base_url = 'http://service.shopex.cn/info.php';
     $this->sess_id = $this->system->session->sess_id;
     $this->license_url = "index.php?ctl=service/certificate&act=download";
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:8,代码来源:ctl.certificate.php

示例4: objectPage

 function objectPage()
 {
     parent::adminPage();
     $this->model =& $this->system->loadModel($this->object);
     $frontend =& $this->system->loadModel('system/frontend');
     $frontend->register_function('toolset', array(&$this, '_getTools'));
     $this->objectName = substr(get_class($this), 4);
     $this->path[] = array('text' => $this->name . '管理', 'url' => 'index.php?ctl=' . $_GET['ctl'] . '&act=index');
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:9,代码来源:objectPage.php

示例5: editRawPost

 private function editRawPost($slug, $draft = false)
 {
     $post_folder = DATA_ROOT . '/posts/';
     if ($draft) {
         $post_folder = $post_folder . 'draft/';
     }
     //die($post_folder);
     $page = new adminPage('post_raw_edit.php');
     $post = new eatStaticBlogPost();
     if (file_exists($post_folder . $slug . '.txt')) {
         $post->data_file_path = $post_folder . $slug . '.txt';
     }
     if (file_exists($post_folder . $slug . '.md')) {
         $post->data_file_path = $post_folder . $slug . '.md';
     }
     if (file_exists($post->data_file_path)) {
         $page->context['title'] = "Edit Post";
         $post->hydrate();
     } else {
         $page->context['title'] = "New Post";
     }
     if (eatStatic::getValue('postback') == '1') {
         //die($slug);
         $post->raw_data = trim(eatStatic::getValue('raw_data', 'post'));
         $post->file_name = trim(eatStatic::getValue('file_name', 'post'));
         $post->original_file_name = trim(eatStatic::getValue('original_file_name', 'post'));
         //die($slug);
         // copy current file data to backups
         if ($slug != 'new') {
             copy($post->data_file_path, DATA_ROOT . '/posts/backup/' . $post->file_name . '.' . eatStatic::timestamp() . '.bak');
             if ($post->original_file_name != $post->file_name) {
                 //die($post->data_file_path);
                 // remove original
                 unlink($post->data_file_path);
                 $new_data_file_path = $post_folder . $post->file_name;
                 eatStatic::write_file($post->raw_data, $new_data_file_path);
             } else {
                 eatStatic::write_file($post->raw_data, $post->data_file_path);
             }
         } else {
             $post->data_file_path = $post_folder . $post->file_name;
             eatStatic::write_file($post->raw_data, $post->data_file_path);
             header('location:' . ADMIN_ROOT . 'posts/drafts/');
             die;
         }
     }
     $page->context['post'] = $post;
     //print_r($page);
     //die();
     $page->render();
 }
开发者ID:rickhurst,项目名称:eatStaticLib,代码行数:51,代码来源:eatStaticAdminPostsController.class.php

示例6: listContents

 private function listContents($sub_path = '')
 {
     $lib = new eatStaticMediaLibrary(DATA_ROOT . '/images/', $sub_path . '/');
     $page = new adminPage('images.php');
     // handle image upload
     if (eatStatic::getValue('postback', 'post') == "1") {
         $image = $lib->upload('images', $sub_path, 'file', 'image');
         if ($image != '') {
             $page->context['message'] = $image . ' uploaded';
         } else {
             $page->context['message'] = 'file not uploaded';
         }
     }
     // create new folder
     if (eatStatic::getValue('postback', 'post') == "2") {
         if (eatStatic::getValue('folder', 'post')) {
             $folder = $lib->createSubFolder(eatStatic::getValue('folder', 'post'));
         }
     }
     $page->context['contents'] = $lib->getContents();
     $page->context['title'] = "Images";
     $page->context['sub_path'] = $sub_path;
     $page->render();
 }
开发者ID:rickhurst,项目名称:eatStaticLib,代码行数:24,代码来源:eatStaticAdminImagesController.class.php

示例7: admin_stat_ctl

 function admin_stat_ctl()
 {
     parent::adminPage();
 }
开发者ID:noikiy,项目名称:MyShop,代码行数:4,代码来源:admin.stat_ctl.php

示例8: ctl_template

 function ctl_template()
 {
     parent::adminPage();
     regex_file($_GET);
 }
开发者ID:noikiy,项目名称:cxe,代码行数:5,代码来源:ctl.template.php

示例9: array

        $aEditTabs[100] = array('id' => 'tab-change-password', 'title' => __('c_c_user_Password'), 'content' => '');
        $aEditTabs[100]['content'] = '<h3>Mot de passe</h3>

		<form action="module.php" method="post">
			<fieldset>
				<legend>' . __('m_users_Edit_password') . '</legend>
				<div class="two-cols">
					<p class="field col"><label for="edit_password">' . __('c_c_user_Password') . '</label>' . form::password('edit_password', 40, 255, html::escapeHTML($edit_password)) . '</p>

					<p class="field col"><label for="edit_password_confirm">' . __('c_c_auth_confirm_password') . '</label>' . form::password('edit_password_confirm', 40, 255, html::escapeHTML($edit_password_confirm)) . '</p>
				</div>
				<div class="two-cols">
					<p class="field col"><label>' . form::checkbox('send_password_mail', 1, 0) . ' ' . __('m_users_Alert_user_by_email') . '</label></p>
				</div>
			</fieldset>
			<p>' . form::hidden('change_password', 1) . form::hidden('m', 'users') . form::hidden('action', 'edit') . form::hidden('id', $aEditPageInfos['iUserId']) . adminPage::formtoken() . '<input type="submit" value="' . __('c_c_action_Edit') . '" /></p>
		</form>';
    }
}
# -- CORE TRIGGER : adminModUsersEditDisplayTabs
$okt->triggers->callTrigger('adminModUsersEditDisplayTabs', $okt, $aEditPageInfos, $aEditTabs);
$aEditTabs->ksort();
# En-tête
require OKT_ADMIN_HEADER_FILE;
?>

<?php 
# buttons set
echo $okt->page->getButtonSet('users');
?>
开发者ID:jewelhuq,项目名称:okatea,代码行数:30,代码来源:edit.php

示例10: ctl_tools

 function ctl_tools()
 {
     parent::adminPage();
     $this->path = array(array('text' => __('工具箱')));
 }
开发者ID:noikiy,项目名称:cxe,代码行数:5,代码来源:ctl.tools.php

示例11: displayForms

 private function displayForms($url, $type, $title)
 {
     $res = '<h3>' . $title . '</h3>' . '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_Add_IP_address') . '</legend><p>' . form::hidden(array('ip_type'), $type) . form::text(array('addip'), 18, 255) . ' ';
     $res .= adminPage::formtoken() . '<input type="submit" value="' . __('c_c_action_Add') . '"/></p>' . '</fieldset></form>';
     $rs = $this->getRules($type);
     if ($rs->isEmpty()) {
         $res .= '<p><strong>' . __('m_antispam_No_IP_address_in_list') . '</strong></p>';
     } else {
         $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_IP_list') . '</legend>' . '<div style="' . $this->style_list . '">';
         while ($rs->fetch()) {
             $bits = explode(':', $rs->rule_content);
             $pattern = $bits[0];
             $ip = $bits[1];
             $bitmask = $bits[2];
             $p_style = $this->style_p;
             $res .= '<p style="' . $p_style . '"><label class="classic">' . form::checkbox(array('delip[]'), $rs->rule_id, false) . ' ' . html::escapeHTML($pattern) . '</label></p>';
         }
         $res .= '</div>' . '<p><input type="submit" value="' . __('c_c_action_Delete') . '"/>' . adminPage::formtoken() . form::hidden(array('ip_type'), $type) . '</p>' . '</fieldset></form>';
     }
     return $res;
 }
开发者ID:jewelhuq,项目名称:okatea,代码行数:21,代码来源:class.filter.ip.php

示例12: objectPage

 function objectPage()
 {
     parent::adminPage();
     $this->model =& $this->system->loadModel($this->object);
     $this->path[] = array('text' => $this->name . __('管理'), 'url' => 'index.php?ctl=' . $_GET['ctl'] . '&act=index');
 }
开发者ID:noikiy,项目名称:MyShop,代码行数:6,代码来源:objectPage.php

示例13: gui

 public function gui($url)
 {
     # Create list
     if (!empty($_POST['createlist'])) {
         try {
             $this->defaultWordsList();
             http::redirect($url . '&list=1');
         } catch (Exception $e) {
             $this->okt->error->set($e->getMessage());
         }
     }
     # Adding a word
     if (!empty($_POST['swa'])) {
         try {
             $this->addRule($_POST['swa']);
             http::redirect($url . '&added=1');
         } catch (Exception $e) {
             $okt->error->add($e->getMessage());
         }
     }
     # Removing spamwords
     if (!empty($_POST['swd']) && is_array($_POST['swd'])) {
         try {
             $this->removeRule($_POST['swd']);
             http::redirect($url . '&removed=1');
         } catch (Exception $e) {
             $okt->error->add($e->getMessage());
         }
     }
     /* DISPLAY
     		---------------------------------------------- */
     global $okt;
     $okt->page->messages->success('list', __('m_antispam_Words_successfully_added'));
     $okt->page->messages->success('added', __('m_antispam_Word_successfully_added'));
     $okt->page->messages->success('removed', __('m_antispam_Words_successfully_removed'));
     $res = '';
     $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_Add_word') . '</legend>' . '<p>' . form::text('swa', 20, 128) . ' ';
     $res .= adminPage::formtoken() . '<input type="submit" value="' . __('c_c_action_Add') . '"/></p>' . '</fieldset>' . '</form>';
     $rs = $this->getRules();
     if ($rs->isEmpty()) {
         $res .= '<p><strong>' . __('m_antispam_No_word_in_list') . '</strong></p>';
     } else {
         $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<fieldset><legend>' . __('m_antispam_List') . '</legend>' . '<div style="' . $this->style_list . '">';
         while ($rs->fetch()) {
             $disabled_word = false;
             $p_style = $this->style_p;
             $res .= '<p style="' . $p_style . '"><label class="classic">' . form::checkbox(array('swd[]'), $rs->rule_id, false) . ' ' . html::escapeHTML($rs->rule_content) . '</label></p>';
         }
         $res .= '</div>' . '<p>' . form::hidden(array('spamwords'), 1) . adminPage::formtoken() . '<input type="submit" value="' . __('m_antispam_Delete_selected_words') . '"/></p>' . '</fieldset></form>';
     }
     $res .= '<form action="' . html::escapeURL($url) . '" method="post">' . '<p><input type="submit" value="' . __('m_antispam_Create_default_wordlist') . '" />' . form::hidden(array('spamwords'), 1) . form::hidden(array('createlist'), 1) . adminPage::formtoken() . '</p>' . '</form>';
     return $res;
 }
开发者ID:jewelhuq,项目名称:okatea,代码行数:53,代码来源:class.filter.words.php

示例14: ctl_addon

 function ctl_addon()
 {
     $this->path[] = array('text' => '工具箱', 'url' => 'index.php?ctl=system/tools&act=welcome');
     $this->path[] = array('text' => '网店扩展');
     parent::adminPage();
 }
开发者ID:dalinhuang,项目名称:shopexts,代码行数:6,代码来源:ctl.addon.php

示例15: adminPage

<?php

require "key.php";
$admin = new adminPage();
/**
 * Created by PhpStorm.
 * User: ITCOMP03
 * Date: 12/3/2015
 * Time: 9:25 AM
 */
switch ($_GET['aksi']) {
    default:
        try {
            $admin->beginTransaction();
            $admin->query("SELECT * from movie");
            $admin->execute();
            $row = $admin->fetchAll();
            $admin->endTransaction();
        } catch (PDOException $e) {
            $err_kon .= "<div class='alert alert-danger'>{$e->getCode()} : Terjadi ERROR dalam pemanggilan data</div>";
        }
        ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta content="text/html; charset=iso-8859-1" http-equiv="content-type"/>
    <title>Show Table Sticker History</title>
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="dataTables/dataTables.bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <script type="application/javascript" src="dataTables/jQuery/jquery-1.11.3.min.js"></script>
开发者ID:Dwiga,项目名称:Repo-project,代码行数:31,代码来源:index.php


注:本文中的adminPage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。