當前位置: 首頁>>代碼示例>>PHP>>正文


PHP url::module方法代碼示例

本文整理匯總了PHP中url::module方法的典型用法代碼示例。如果您正苦於以下問題:PHP url::module方法的具體用法?PHP url::module怎麽用?PHP url::module使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在url的用法示例。


在下文中一共展示了url::module方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onDefault

 public function onDefault()
 {
     $header['title'] = '控製麵板';
     $header['js'][] = url::module() . '/admin/js/side.js';
     $header['body']['class'] = 'side';
     page::header($header);
     block::header(array('title' => '應用列表', 'action' => '<a href="#" title="欄目管理">管理</a>'));
     echo '<ul id="applications" class="list">';
     echo '	<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控製中心</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表單測試</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '內容管理', 'action' => '<a href="javascript:zotop.frame.side().location.reload();">刷新</a> <a href="#" title="欄目管理">管理</a>'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控製中心</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表單測試</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     //echo '<div style="height:600px;"></div>';
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:25,代碼來源:side.php

示例2: onDefault

 public function onDefault()
 {
     if (form::isPostBack()) {
         $post = array();
         $post['username'] = request::post('username');
         $post['password'] = request::post('password');
         $post['logintime'] = time();
         $user = zotop::model('zotop.user');
         $data = $user->read($post['username'], 'username');
         //zotop::dump($data);
         if ($data == false) {
             msg::error('登陸失敗', zotop::t('賬戶名稱`{$username}`不存在,請檢查!', array('username' => $post['username'])));
         }
         zotop::user($data);
         msg::success('登陸成功', '登陸成功,係統正在加載中', 'reload', 2);
     }
     if (zotop::user() != null) {
         zotop::redirect('zotop/index');
     }
     $header['title'] = '用戶登錄';
     $header['js'] = url::module() . '/admin/js/login.js';
     $header['body']['class'] = "login";
     page::header($header);
     block::header(array('id' => 'LoginWindow', 'title' => '用戶登錄'));
     form::header(array('title' => '', 'description' => '請輸入用戶名和密碼', 'class' => 'small'));
     form::field(array('type' => 'text', 'label' => zotop::t('帳 戶(U)'), 'name' => 'username', 'value' => zotop::user('username'), 'valid' => 'required:true'));
     form::field(array('type' => 'password', 'label' => zotop::t('密 碼(P)'), 'name' => 'password', 'value' => ''));
     form::buttons(array('type' => 'submit', 'value' => '登 陸'), array('type' => 'button', 'name' => 'options', 'value' => '選 項'));
     form::footer();
     block::footer();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:32,代碼來源:login.php

示例3: onSide

 public function onSide()
 {
     $header['title'] = '係統管理';
     $header['js'][] = url::module() . '/admin/js/side.js';
     $header['body']['class'] = 'side';
     page::header($header);
     block::header(array('title' => '係統工具', 'class' => 'show'));
     echo '<ul id="applications" class="list">';
     echo '	<li><a href="' . zotop::url('zotop/system/reboot') . '" target="mainIframe">係統關閉與重啟</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/system/clearcahce') . '" target="mainIframe">緩存清理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/setting') . '" target="mainIframe">係統設置</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/database') . '" target="mainIframe">數據庫備份與還原</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '模塊管理', 'class' => 'show'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/module') . '" target="mainIframe">模塊管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/module/add') . '" target="mainIframe">模塊添加</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/module/install') . '" target="mainIframe">模塊安裝</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '管理員設置', 'class' => 'show'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/user') . '" target="mainIframe">係統用戶管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/usergroup') . '" target="mainIframe">係統用戶組管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/role') . '" target="mainIframe">係統角色管理</a></li>';
     echo '</ul>';
     block::footer();
     //echo '<div style="height:600px;"></div>';
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:33,代碼來源:system.php

示例4: onDefault

 public function onDefault()
 {
     $site = array();
     $site['name'] = zotop::config('zotop.site.name');
     $site['totalsize'] = zotop::config('zotop.ftp.size');
     $site['totalsize'] = (int) $site['totalsize'] == 0 ? '--' : format::byte($site['totalsize']);
     $database = array();
     $database['size'] = zotop::db()->size();
     $database['size'] = format::byte($database['size']);
     $page['title'] = '控製中心';
     $page['css'][] = url::module() . '/admin/css/main.css';
     zotop::add('zotop.main.main', array(&$this, 'notepad'));
     zotop::add('zotop.main.main', array(&$this, 'mylog'));
     page::header($page);
     page::top();
     page::navbar($this->navbar(), 'main');
     page::add('');
     page::add('<div id="user" class="clearfix">');
     page::add('	<div id="userface"><span class="image">' . html::image(zotop::user('image')) . '</span></div>');
     page::add('	<div id="userinfo">');
     page::add('	<h2 id="welcome">歡迎您,' . zotop::user('name') . ' <span id="sign">' . zotop::user('sign') . '</span></h2>');
     page::add('	<div id="login">登錄時間:' . time::format(zotop::user('logintime')) . ' 登錄次數:' . zotop::user('loginnum') . ' 登錄IP:' . zotop::user('loginip') . '</div>');
     //加載hook
     zotop::run('zotop.main.action');
     page::add('');
     page::add('</div>');
     page::add('<div class="grid-m-s">');
     page::add('<div class="col-main">');
     page::add('<div class="col-main-inner">');
     zotop::run('zotop.main.main');
     page::add('</div>');
     page::add('</div>');
     page::add('<div class="col-sub">');
     zotop::run('zotop.main.sub');
     block::header(array('title' => '網站信息', 'action' => '<a class="more" href="' . zotop::url('zotop/info/site') . '">詳細</a>'));
     echo '<table class="table">';
     echo '<tr><td class="w80">網站名稱:</td><td>' . $site['name'] . '</td></tr>';
     echo '<tr><td class="w80">空間占用:</td><td>' . $site['totalsize'] . '</td></tr>';
     echo '<tr><td class="w80">已上傳文件:</td><td></td></tr>';
     echo '<tr><td class="w80">數據庫大小:</td><td>' . $database['size'] . '</td></tr>';
     echo '</table>';
     block::footer();
     block::header(array('title' => '係統信息', 'action' => '<a class="more" href="' . zotop::url('zotop/main/system') . '">詳細</a>'));
     echo '<table class="table">';
     echo '<tr><td class="w80">程序版本:</td><td>' . zotop::config('zotop.version') . '</td></tr>';
     echo '<tr><td class="w80">程序設計:</td><td>' . zotop::config('zotop.author') . '</td></tr>';
     echo '<tr><td class="w80">程序開發:</td><td>' . zotop::config('zotop.authors') . '</td></tr>';
     echo '<tr><td class="w80">官方網站:</td><td><a href="' . zotop::config('zotop.homepage') . '" target="_blank">' . zotop::config('zotop.homepage') . '</a></td></tr>';
     echo '<tr><td class="w80">安裝時間:</td><td>' . zotop::config('zotop.install') . '</td></tr>';
     echo '</table>';
     block::footer();
     page::add('</div>');
     page::add('</div>');
     page::bottom('<span class="zotop-tip">上次登錄時間:' . time::format(zotop::user('logintime')) . '</span>');
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:56,代碼來源:main.php

示例5: onImage

 public function onImage()
 {
     $header['title'] = '上傳圖片';
     $header['js'][] = url::module() . '/admin/js/upload.js';
     dialog::header($header);
     form::header(array('title' => '', 'description' => '', 'class' => 'ajax'));
     form::add(array('type' => 'text', 'label' => t('圖片地址'), 'name' => 'image', 'value' => 'http://www.baidu.com/logo.gif', 'description' => '請輸入圖片地址測試賦值'));
     form::add(array('type' => 'textarea', 'label' => t('圖片說明'), 'name' => 'content', 'value' => ''));
     form::buttons(array('id' => 'UploadImage', 'type' => 'button', 'value' => '上傳圖片'), array('type' => 'button', 'value' => '取消', 'class' => 'zotop-dialog-close'));
     form::footer();
     dialog::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:12,代碼來源:upload.php

示例6: source

 public static function source($attrs)
 {
     $html = array();
     $html[] = '';
     $html[] = '<div style="height:460px;overflow:hidden;">';
     $html[] = '<div id="SourceEditorPannel">正在加載編輯器,請稍後……</div>';
     $html[] = html::script(url::common() . '/js/swfobject.js');
     $html[] = html::script(url::module() . '/admin/js/file.js');
     $html[] = field::textarea($attrs);
     $html[] = '</div>';
     return implode("\n", $html);
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:12,代碼來源:file.php

示例7: onDefault

 public function onDefault()
 {
     $header['title'] = '控製中心';
     $header['js'] = url::module() . '/admin/js/index.js';
     $header['body']['class'] = 'frame';
     page::header($header);
     $html[] = '';
     $html[] = '<script type="text/javascript">';
     $html[] = '	zotop.url.frame.side="' . zotop::url('zotop/side') . '"';
     $html[] = '	zotop.url.frame.main="' . zotop::url('zotop/main') . '"';
     $html[] = '	zotop.url.msg.unread="' . zotop::url('zotop/msg/unread') . '"';
     $html[] = '</script>';
     $html[] = '	<div id="header">';
     $html[] = '		<div id="top">';
     $html[] = '			<div id="logo"><a href="' . zotop::url('zotop/main') . '" target="mainIframe" onfocus="this.blur();" title="首頁"></a></div>';
     $html[] = '			<div id="action">';
     $html[] = '				<div id="topbar">';
     $html[] = '					<a href="javascript:notepad()">記事本</a><b>|</b>';
     $html[] = '					<a href="' . zotop::url('zotop/setting') . '" target="mainIframe">係統設置</a><b>|</b>';
     $html[] = '					<a href="' . zotop::url('zotop/about') . '" target="mainIframe" class="dialog {width:450,height:160}">關於</a>';
     $html[] = '				</div>';
     $html[] = '				<div id="user">';
     $html[] = '					<span id="user-info"><b>' . zotop::user('username') . '</b>(administrator)</span>';
     $html[] = '					<span id="user-action">';
     $html[] = '						<span id="msg"><a href="' . zotop::url('zotop/msg') . '" target="mainIframe">短消息</a><span id="msg-unread"><a href="' . zotop::url('zotop/msg/default/0') . '" target="mainIframe"><span id="msg-unread-num">0</span>條未讀</a></span><b>|</b></span>';
     $html[] = '						<a href="' . zotop::url('zotop/user/changepassword') . '" target="mainIframe">修改我的密碼</a><b>|</b>';
     $html[] = '						<a href="' . zotop::url('zotop/login/logout') . '" id="logout" class="confirm {content:\'<h1>您確定要退出登錄?</h1>退出登陸後將默認將返回係統登錄頁麵\',yes:\'安全退出\'}">安全退出</a>';
     $html[] = '					</span>';
     $html[] = '				</div>';
     $html[] = '				<div id="navbar">';
     $html[] = '					<ul>';
     $html[] = '						<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe"><span>控製中心</span></a></li>';
     $html[] = '						<li><a href="' . zotop::url('content') . '" target="mainIframe"><span>內容管理</span></a></li>';
     $html[] = '						<li><a href="' . zotop::url('member') . '" target="mainIframe"><span>會員管理</span></a></li>';
     $html[] = '						<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe"><span>係統管理</span></a></li>';
     $html[] = '					</ul>';
     $html[] = '				</div>';
     $html[] = '			</div>';
     $html[] = '		</div>';
     $html[] = '		<div id="position">';
     $html[] = '		</div>';
     $html[] = '	</div>';
     $html[] = '	<div id="body">';
     $html[] = '		<div id="side">';
     $html[] = '		<div id="side-inner">';
     $html[] = '			<div id="side-header">';
     $html[] = '				<div class="side-block-header">';
     $html[] = '					<div class="side-block-title">應用列表</div>';
     $html[] = '					<div class="side-block-action"><a href="#">管理</a></div>';
     $html[] = '				</div>';
     $html[] = '				<div class="side-block-body">';
     $html[] = '					<ul id="applications">';
     $html[] = '						<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控製中心</a></li>';
     $html[] = '						<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表單測試</a></li>';
     $html[] = '						<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     $html[] = '						<li><a href="' . zotop::url('zotop/io') . '" target="mainIframe">文件管理</a></li>';
     $html[] = '					</ul>';
     $html[] = '				</div>';
     $html[] = '				<div class="side-block-footer">';
     $html[] = '				</div>';
     $html[] = '			</div>';
     $html[] = '			<div id="side-body">';
     $html[] = '				<div class="side-block-header">';
     $html[] = '					<div class="side-block-title">內容管理</div>';
     $html[] = '					<div class="side-block-action"><a href="javascript:zotop.frame.side().location.reload();">刷新</a> <a href="#" title="欄目管理">管理</a></div>';
     $html[] = '				</div>';
     $html[] = '			</div>';
     $html[] = '			<div id="side-extra">';
     $html[] = '				<div class="inner">';
     $html[] = '				' . html::iframe('sideIframe', 'about:blank', array('frameborder' => 'no', 'scrolling' => 'auto', 'width' => '100%', 'height' => '100%'));
     $html[] = '				</div>';
     $html[] = '			</div>';
     $html[] = '			<div id="side-footer">';
     $html[] = '				<div>Powered by <a href="' . zotop::config('zotop.homepage') . '" target="_blank">' . zotop::config('zotop.name') . ' ' . zotop::config('zotop.version') . '</a></div>';
     $html[] = '			</div>';
     $html[] = '		</div>';
     $html[] = '		</div>';
     $html[] = '		<div id="main">';
     $html[] = '			' . html::iframe('mainIframe', 'about:blank', array('frameborder' => 'no', 'scrolling' => 'auto', 'width' => '100%', 'height' => '100%'));
     $html[] = '		</div>';
     $html[] = '	</div>';
     $html[] = '	<div id="footer">';
     $html[] = '	</div>';
     echo implode("\n", $html);
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:86,代碼來源:index.php

示例8: controller

 public static function controller()
 {
     $url = url::module();
     $url = $url . '/' . APP_NAME;
     return $url;
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:6,代碼來源:url.php

示例9: onDefault

 public function onDefault()
 {
     $header['title'] = '控製中心';
     $header['css'] = url::module() . '/admin/css/index.css';
     $header['js'][] = url::module() . '/admin/js/index.js';
     $header['body']['class'] = 'frame';
     page::header($header);
     $html[] = '';
     $html[] = '<script type="text/javascript">';
     $html[] = '	zotop.url.main="' . url::build('system/index/main') . '"';
     $html[] = '	zotop.url.msgUnread="' . url::build('system/msg/unread') . '"';
     $html[] = '</script>';
     $html[] = '<table id="frames" border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">';
     $html[] = '	<tr id="header">';
     $html[] = '		<td colspan="2">';
     $html[] = '		<div id="top">';
     $html[] = '			<div id="logo"><a href="' . url::build('system') . '" target="mainIframe" onfocus="this.blur();" title="首頁"></a></div>';
     $html[] = '			<div id="action">';
     $html[] = '				<div id="topbar">';
     $html[] = '					<a href="javascript:notepad()">記事本</a><b>|</b>';
     $html[] = '					<a href="' . url::build('system/setting') . '" target="mainIframe">係統設置</a><b>|</b>';
     $html[] = '					<a href="' . url::build('system/about') . '" target="mainIframe" class="dialog {width:450,height:160}">關於</a>';
     $html[] = '				</div>';
     $html[] = '				<div id="user">';
     $html[] = '					<span id="user-info"><b>zotop</b>(administrator)</span>';
     $html[] = '					<span id="user-action">';
     $html[] = '						<span id="msg"><a href="' . url::build('system/msg') . '" target="mainIframe">短消息</a><span id="msg-unread"><a href="' . url::build('system/msg/default/0') . '" target="mainIframe"><span id="msg-unread-num">0</span>條未讀</a></span><b>|</b></span>';
     $html[] = '						<a href="' . url::build('system/user/changepassword') . '" target="mainIframe">修改我的密碼</a><b>|</b>';
     $html[] = '						<a href="' . url::build('system/login/logout') . '" id="logout" class="confirm {content:\'<h1>您確定要退出登錄?</h1>退出登陸後將默認將返回係統登錄頁麵\',yes:\'安全退出\'}">安全退出</a>';
     $html[] = '					</span>';
     $html[] = '				</div>';
     $html[] = '			</div>';
     $html[] = '		</div>';
     $html[] = '		</td>';
     $html[] = '	</tr>';
     $html[] = '	<tr id="body">';
     $html[] = '		<td id="side">';
     $html[] = '		<div class="sideinner">';
     $html[] = '		<div class="header">';
     $html[] = '			<div class="top">';
     $html[] = '				<a href="' . url::build('system/index/main') . '" target="mainIframe">控製中心</a>';
     $html[] = '				<a href="' . url::build('system/login') . '" target="mainIframe">登陸測試</a>';
     $html[] = '				<a href="' . url::build('system/test') . '" target="mainIframe">表單測試</a>';
     $html[] = '				<a href="' . url::build('system/database') . '" target="mainIframe">數據庫管理</a>';
     $html[] = '			</div>';
     $html[] = '			<div class="body-header">';
     $html[] = '				<div class="body-title">欄目列表</div>';
     $html[] = '				<div class="body-action">刷新</div>';
     $html[] = '			</div>';
     $html[] = '		</div>';
     $html[] = '		<div class="body">';
     $html[] = '		<div class="inner">';
     $html[] = '		<div style="height:600px;">fffffff</div>';
     $html[] = '		</div>';
     $html[] = '		</div>';
     $html[] = '		<div class="footer">';
     $html[] = '		</div>';
     $html[] = '		</div>';
     $html[] = '		</td>';
     $html[] = '		<td id="main">';
     $html[] = '			' . html::iframe('mainIframe', 'about:blank', array('frameborder' => 'no', 'scrolling' => 'auto', 'width' => '100%', 'height' => '100%'));
     $html[] = '		</td>';
     $html[] = '	</tr>';
     $html[] = '	<tr id="footer">';
     $html[] = '		<td colspan="2"></td>';
     $html[] = '	</tr>';
     $html[] = '</table>';
     echo implode("\n", $html);
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:70,代碼來源:index.php

示例10: decode

 public static function decode($url)
 {
     $url = str_replace(array('%root%', '%zotop%', '%theme%', '%module%'), array(url::root(), url::zotop(), url::theme(), url::module()), $url);
     return $url;
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:5,代碼來源:url.php


注:本文中的url::module方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。