本文整理匯總了PHP中table::footer方法的典型用法代碼示例。如果您正苦於以下問題:PHP table::footer方法的具體用法?PHP table::footer怎麽用?PHP table::footer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類table
的用法示例。
在下文中一共展示了table::footer方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: footer
public static function footer($str = '')
{
table::$footer = $str;
echo table::render();
table::$attrs = array();
table::$datas = array();
table::$footer = '';
}
示例2: onDefault
public function onDefault()
{
$tables = $this->db->table()->get(true);
$header['title'] = '數據庫管理';
page::header($header);
page::add('<div id="page" class="clearfix">');
page::add('<div id="side">');
block::header('數據庫基本信息');
table::header();
table::row(array('w60' => '數據庫名稱', '2' => '' . $this->db->config['database'] . ''));
table::row(array('w60' => '數據庫版本', '2' => '' . $this->db->version(true) . ''));
table::row(array('w60' => '數據庫大小', '2' => '<b>' . $this->db->size() . '</b> '));
table::row(array('w60' => '數據表個數', '2' => '<b>' . count($tables) . '</b> 個'));
table::footer();
block::footer();
page::add('</div>');
page::add('<div id="main">');
page::top();
page::navbar($this->navbar(), 'table');
//zotop::dump($tables);
form::header(array('class' => 'ajax'));
$column['select'] = '<input name="id" class="selectAll" type="checkbox"/>';
$column['name'] = '數據表名稱';
$column['size w60'] = '大小';
$column['Rows w60'] = '記錄數';
$column['Engine w60'] = '類型';
$column['Collation w100'] = '整理';
$column['manage view w60'] = '瀏覽';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($tables as $table) {
$size = $table['Data_length'] + $table['Index_length'];
$column = array();
$column['select'] = '<input name="id[]" class="select" type="checkbox"/>';
$column['name'] = '<b>' . $table['Name'] . '</b><h5>' . $table['Comment'] . '</h5>';
$column['size w60'] = (string) format::size($size);
$column['Rows w60'] = $table['Rows'];
$column['Engine w60'] = $table['Engine'];
$column['collation w100'] = $table['Collation'];
$column['manage view w60'] = '<a href="' . url::build('system/database/table/record') . '">瀏覽</a>';
$column['manage delete'] = '<a href="' . url::build('system/database/table/delete') . '" class="confirm">刪除</a>';
table::row($column);
}
table::footer();
page::add('<div style="height:200px;"></div>');
form::buttons(array('type' => 'select', 'style' => 'width:180px', 'options' => array('check' => '優化', 'delete' => '刪除')), array('type' => 'submit', 'value' => '執行操作'));
form::footer();
page::bottom();
page::add('</div>');
page::add('</div>');
page::footer();
}
示例3: onDefault
public function onDefault()
{
$User = zotop::model('zotop.user');
$list = $User->getAll(array('select' => '*', 'where' => array('modelid', '=', 'system'), 'orderby' => 'logintime desc'));
$page['title'] = '係統用戶管理';
page::header($page);
page::top();
page::navbar($this->navbar());
form::header();
$column = array();
$column['status w30 center'] = '狀態';
$column['username'] = '賬號名稱';
$column['name'] = '姓名';
$column['loginnum'] = '登錄次數';
$column['loginip w120'] = '登錄IP';
$column['logintime w150'] = '登錄時間';
$column['manage lock'] = '鎖定';
$column['manage rename'] = '修改密碼';
$column['manage edit'] = '編輯';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($list as $user) {
$user['status-icon'] = $user['status'] == -1 ? html::image(url::theme() . '/image/icon/lock.gif') : html::image(url::theme() . '/image/icon/user.gif');
$column = array();
$column['status w30 center'] = $user['status-icon'];
$column['username'] = '<a><b>' . $user['username'] . '</b></a><h5>' . $user['email'] . '</h5>';
$column['name w60'] = $user['name'];
$column['loginnum w60'] = $user['loginnum'];
$column['loginip w120'] = $user['loginip'];
$column['logintime w150'] = time::format($user['logintime']);
if ($user['status'] == -1) {
$column['manage lock'] = '<a class="confirm" href="' . zotop::url('zotop/user/lock', array('id' => $user['id'], 'status' => 0)) . '">解鎖</a>';
} else {
$column['manage lock'] = '<a class="confirm" href="' . zotop::url('zotop/user/lock', array('id' => $user['id'])) . '">鎖定</a>';
}
$column['manage rename'] = '<a href="' . zotop::url('zotop/user/changepassword', array('id' => $user['id'])) . '">修改密碼</a>';
$column['manage edit'] = '<a href="' . zotop::url('zotop/user/changeinfo', array('id' => $user['id'])) . '">編輯</a>';
$column['manage delete'] = '<a>刪除</a>';
table::row($column);
}
table::footer();
form::buttons();
form::footer();
page::bottom();
page::footer();
}
示例4: onDefault
public function onDefault()
{
$role = zotop::model('zotop.role');
$list = $role->getAll(array('select' => '*', 'orderby' => 'order desc'));
$page['title'] = '係統用戶管理';
//zotop::dump($role->db()->lastsql());
page::header($page);
page::top();
page::navbar($this->navbar());
form::header();
$column = array();
$column['status w30 center'] = '狀態';
$column['id w30 center'] = '編號';
$column['rolename'] = '角色名稱';
$column['manage lock'] = '鎖定';
$column['manage edit'] = '編輯';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($list as $role) {
$role['status-icon'] = $role['status'] == -1 ? html::image(url::theme() . '/image/icon/lock.gif') : html::image(url::theme() . '/image/icon/ok.gif');
$column = array();
$column['status w30 center'] = $role['status-icon'];
$column['id w30 center'] = $role['id'];
$column['rolename'] = '<a><b>' . $role['name'] . '</b></a><h5>' . $role['description'] . '</h5>';
if ($role['status'] == -1) {
$column['manage lock'] = '<a class="confirm" href="' . zotop::url('zotop/role/lock', array('id' => $role['id'], 'status' => 0)) . '">解鎖</a>';
} else {
$column['manage lock'] = '<a class="confirm" href="' . zotop::url('zotop/role/lock', array('id' => $role['id'])) . '">鎖定</a>';
}
$column['manage edit'] = '<a href="' . zotop::url('zotop/role/edit', array('id' => $role['id'])) . '">編輯</a>';
$column['manage delete'] = '<a>刪除</a>';
table::row($column);
}
table::footer();
form::buttons();
form::footer();
page::bottom();
page::footer();
}
示例5: array
$column['name'] = '<a href="' . zotop::url('webftp/index/index', array('dir' => rawurlencode($dir . '/' . $folder))) . '"><b>' . $folder . '</b></a>';
$column['name'] .= '<h5>';
$column['name'] .= '<a href="' . zotop::url('webftp/folder/rename', array('dir' => rawurlencode($dir), 'file' => $file)) . '" class="dialog">重命名</a>';
$column['name'] .= ' <a href="' . zotop::url('webftp/folder/delete', array('dir' => rawurlencode($dir), 'file' => $file)) . '" class="dialog">刪除</a>';
$column['name'] .= '</h5>';
$column['type w60'] = '文件夾';
$column['encoding w60'] = '';
$column['size w60'] = '--';
$column['atime w120'] = time::format(@fileatime($path . DS . $folder));
$column['mtime w120'] = time::format(@filemtime($path . DS . $folder));
table::row($column);
}
foreach ($files as $file) {
$column = array();
$column['center'] = '<div class="zotop-icon zotop-icon-file ' . file::ext($file) . '"></div>';
$column['name'] = '<div><b>' . $file . '</b></div>';
$column['name'] .= '<h5>';
$column['name'] .= '<a href="' . zotop::url('webftp/file/edit', array('file' => url::encode($dir . '/' . $file))) . '" class="dialog">編輯</a>';
$column['name'] .= ' <a href="' . zotop::url('webftp/file/rename', array('file' => url::encode($dir . '/' . $file))) . '" class="dialog">重命名</a>';
$column['name'] .= ' <a href="' . zotop::url('webftp/file/delete', array('file' => url::encode($dir . '/' . $file))) . '" class="dialog">刪除</a>';
$column['name'] .= '</h5>';
$column['type w60'] = '文件';
$column['encoding w60'] = file::isUTF8($path . DS . $file) ? 'UTF8' : '';
$column['size w60'] = format::byte(@filesize($path . DS . $file));
$column['atime w120'] = time::format(@fileatime($path . DS . $file));
$column['mtime w120'] = time::format(@filemtime($path . DS . $file));
table::row($column);
}
table::footer();
$this->bottom();
$this->footer();
示例6: onDefault
public function onDefault()
{
$db = zotop::db();
$host = $db->config('hostname');
$dbName = $db->config('database');
$dbVersion = $db->version(true);
$dbSize = $db->size();
$tables = zotop::db()->tables(true);
$header['title'] = '數據庫管理:' . $dbName;
page::header($header);
page::add('<div id="page" class="clearfix">');
page::add('<div id="side">');
block::header('數據庫基本信息');
table::header();
table::row(array('w60' => '數據庫主機', '2' => '' . $host . ''));
table::row(array('w60' => '數據庫名稱', '2' => '' . $dbName . ''));
table::row(array('w60' => '數據庫版本', '2' => '' . $dbVersion . ''));
table::row(array('w60' => '數據庫大小', '2' => '<b>' . $dbSize . '</b> '));
table::row(array('w60' => '數據表個數', '2' => '<b>' . count($tables) . '</b> 個'));
table::footer();
block::footer();
block::header('創建數據表');
form::header(array('action' => zotop::url('database/table/create'), 'template' => 'div'));
form::field(array('type' => 'text', 'name' => 'tablename', 'label' => zotop::t('表名稱'), 'style' => 'width:180px', 'valid' => '{required:true}', 'description' => '不含前綴,係統會自動加上前綴'));
form::buttons(array('type' => 'submit', 'value' => '創建'));
form::footer();
block::footer();
page::add('</div>');
page::add('<div id="main">');
page::top();
page::navbar($this->navbar(), 'tables');
//zotop::dump($tables);
form::header(array('class' => 'list', 'action' => zotop::url('database/table/action')));
$column['select'] = html::checkbox(array('name' => 'table', 'class' => 'selectAll'));
$column['name'] = '數據表名稱';
$column['size w60'] = '大小';
$column['Rows w60'] = '記錄數';
$column['Engine w60'] = '類型';
$column['Collation w100'] = '整理';
$column['manage view w60'] = '瀏覽';
$column['manage delete'] = '刪除';
page::add('<div style="height:400px;">');
table::header('list', $column);
foreach ($tables as $table) {
$column = array();
$column['select'] = html::checkbox(array('name' => 'table[]', 'value' => $table['name'], 'class' => 'select'));
$column['name'] = '<a href="' . url::build('database/field/default', array('tablename' => $table['name'])) . '"><b>' . $table['name'] . '</b></a><h5>' . $table['comment'] . '</h5>';
$column['size w60'] = (string) format::byte($table['size']);
$column['Rows w60'] = $table['rows'];
$column['Engine w60'] = $table['engine'];
$column['collation w100'] = $table['collation'];
$column['manage view w60'] = '<a href="' . url::build('database/table/edit', array('tablename' => $table['name'])) . '">設置</a>';
$column['manage delete'] = '<a href="' . url::build('database/table/delete', array('tablename' => $table['name'])) . '" class="confirm">刪除</a>';
table::row($column, 'select');
}
table::footer();
page::add('</div>');
form::buttons(array('type' => 'select', 'name' => 'operation', 'style' => 'width:180px', 'options' => array('optimize' => '優化', 'delete' => '刪除'), 'value' => 'check'), array('type' => 'submit', 'value' => '執行操作'));
form::footer();
page::bottom();
page::add('</div>');
page::add('</div>');
page::footer();
}
示例7: onInstall
public function onInstall($id = '')
{
$module = zotop::model('zotop.module');
$modules = $module->notInstalled();
//模塊安裝
if (!empty($id)) {
$install = $module->install($id);
if ($install) {
msg::success('操作成功', '模塊安裝成功,請稍候', zotop::url('zotop/module/install'));
}
msg::error('操作失敗', '模塊安裝失敗,請檢查模塊是否已經存在!');
}
$page['title'] = '模塊安裝';
page::header($page);
page::top();
page::navbar($this->navbar());
//block::header('操作說明');
echo '<ul class="notice">';
echo ' <li>安裝模塊前,請確認將該模塊文件夾上傳至服務器上的模塊目錄下麵目錄下麵(/zotop/modules)</li>';
echo ' <li>上傳完成後,刷新頁麵,模塊將會出現在下麵的待安裝模塊列表中</li>';
echo '</ul>';
//block::footer();
block::header('待安裝模塊');
$column = array();
$column['logo w30'] = '';
$column['name'] = '名稱';
$column['version w50'] = '版本';
$column['manage edit'] = '安裝';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($modules as $module) {
$column = array();
$column['logo w30'] = html::image($module['icon'], array('width' => '32px'));
$column['name'] = '<a><b>' . $module['name'] . '</b></a><h5>' . $module['description'] . '</h5>';
$column['version'] = $module['version'];
$column['manage edit'] = html::a(zotop::url('zotop/module/install', array('id' => $module['id'])), '安裝', array('class' => 'confirm'));
$column['manage delete'] = '刪除';
table::row($column);
}
table::footer();
block::footer();
page::bottom();
page::footer();
}
示例8: onDefault
public function onDefault($dir = '')
{
$path = ROOT . DS . trim($dir, DS);
$path = path::clean($path);
$folders = dir::folders($path);
$files = dir::files($path);
$fileext = array('php', 'css', 'js', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'psd', 'html', 'htm', 'tpl', 'rar', 'zip', 'mp3');
$page['title'] = '文件管理器';
page::header($page);
page::add('<div id="page" class="clearfix">');
page::add('<div id="main">');
page::add('<div id="main-inner">');
page::top();
page::navbar($this->navbar(), 'default');
$column = array();
$column['select'] = '';
$column['name'] = '名稱';
$column['type'] = '類型';
$column['size w60'] = '大小';
$column['atime w120'] = '創建時間';
$column['mtime w120'] = '修改時間';
$column['manage rename w80'] = '重命名';
$column['manage edit w80'] = '編輯';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($folders as $folder) {
$column = array();
$column['select w20 center'] = html::image(url::theme() . '/image/fileext/folder.gif');
$column['name'] = '<a href="' . zotop::url('filemanager/index/default', array('dir' => $dir . DS . $folder)) . '"><b>' . $folder . '</b></a>';
$column['type w60'] = '文件夾';
$column['size w60'] = '--';
$column['atime w120'] = time::format(@fileatime($path . DS . $folder));
$column['mtime w120'] = time::format(@filemtime($path . DS . $folder));
$column['manage rename w80'] = '<a>重命名</a>';
$column['manage edit w80'] = '<a class="disabled">編輯</a>';
$column['manage delete'] = '<a>刪除</a>';
table::row($column);
}
foreach ($files as $file) {
$column = array();
$column['select w20 center'] = in_array(file::ext($file), $fileext) ? html::image(url::theme() . '/image/fileext/' . file::ext($file) . '.gif') : html::image(url::theme() . '/image/fileext/unknown.gif');
$column['name'] = '<a href="' . zotop::url('filemanager/index/default', array('dir' => $dir . DS . $file)) . '"><b>' . $file . '</b></a>';
$column['type w60'] = '文件';
$column['size w60'] = format::byte(@filesize($path . DS . $file));
$column['atime w120'] = time::format(@fileatime($path . DS . $file));
$column['mtime w120'] = time::format(@filemtime($path . DS . $file));
$column['manage rename w80'] = '<a>重命名</a>';
$column['manage edit w80'] = '<a href="' . zotop::url('filemanager/file/edit', array('filename' => $dir . DS . $file, 'dir' => '***')) . '">編輯</a>';
$column['manage delete'] = '<a>刪除</a>';
table::row($column);
}
table::footer();
page::bottom();
page::add('</div>');
page::add('</div>');
page::add('<div id="side">');
block::header('快捷操作');
echo '<ul class="list">';
echo '<li class="file"><a href="' . zotop::url('zotop/file/newfile') . '" class="dialog">新建文件</a></li>';
echo '<li class="folder"><a href="' . zotop::url('zotop/file/newfolder') . '" class="dialog">新建文件夾</a></li>';
echo '<li class="folder"><a href="' . zotop::url('zotop/file/upload') . '" class="dialog">文件上傳</a></li>';
echo '</ul>';
block::footer();
block::header('其他位置');
echo '<ul class="list">';
echo '<li class="root"><a>根目錄</a></li>';
echo '<li class="root"><a>模板目錄</a></li>';
echo '<li class="root"><a>模塊目錄</a></li>';
echo '<li class="root"><a>緩存目錄</a></li>';
echo '</ul>';
block::footer();
page::add('</div>');
page::add('</div>');
page::footer();
}
示例9: onDefault
public function onDefault($tablename)
{
$tables = zotop::db()->tables(true);
$table = $tables[$tablename];
$fields = array();
if (isset($table)) {
$fields = zotop::db()->table($tablename)->fields(true);
}
$indexes = zotop::db()->table($tablename)->index();
$page['title'] = '數據庫管理 <i>></i> 數據表 [ <b>' . $tablename . '</b> ] <h6>' . $table['comment'] . '</h6>';
page::header($page);
page::add('<div id="page" class="clearfix">');
page::add('<div id="main">');
page::add('<div id="main-inner">');
page::top();
page::navbar($this->navbar($tablename), 'fields');
form::header(array('class' => 'list'));
$column = array();
$column['select'] = html::checkbox(array('name' => 'id', 'class' => 'selectAll'));
//$column['key w30 center'] = '索引';
$column['name'] = '字段名稱';
$column['type w150'] = '字段類型';
//$column['null w50'] = '空值';
//$column['default w100'] = '默認值';
//$column['comment'] = '注釋';
$column['manage pri'] = '主鍵';
$column['manage index'] = '索引';
$column['manage unique'] = '唯一';
$column['manage fulltext'] = '全文';
$column['manage edit'] = '修改';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($fields as $field) {
$column = array();
$column['select'] = html::checkbox(array('name' => 'id[]', 'class' => 'select'));
//$column['key w30 center'] = '<span class="'.$field['key'].'">'.$field['key'].'</span>';
$column['name'] = '<a href="' . zotop::url('database/field/edit', array('table' => $tablename, 'field' => $field['name'])) . '" title="注釋:' . $field['comment'] . ' 默認:' . $field['default'] . ' 空值:' . $field['null'] . ' 整理:' . $field['collation'] . '"><b class="' . $field['key'] . '">' . $field['name'] . '</b></a><h5>' . $field['comment'] . '</h5>';
$column['type w150'] = $field['type'] . (empty($field['length']) ? '' : '(' . $field['length'] . ')');
//$column['null w50'] = $field['null'];
//$column['default w100'] = $field['default'];
//$column['comment'] = $field['comment'];
$column['manage pri'] = '<a href="' . zotop::url('database/field/primaryKey', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>確定要將該字段設置為主鍵?</h2>\'}">主鍵</a>';
$column['manage index'] = '<a href="' . zotop::url('database/field/index', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>確定要索引該字段?</h2>\'}">索引</a>';
$column['manage unique'] = '<a href="' . zotop::url('database/field/unique', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>確定要將該字段設置為唯一?</h2>\'}">唯一</a>';
if (stripos((string) $field['type'], 'varchar') !== false || stripos((string) $field['type'], 'text') !== false) {
$column['manage fulltext'] = '<a href="' . zotop::url('database/field/fulltext', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>確定要將該字段設置為全文索引?</h2>\'}">全文</a>';
} else {
$column['manage fulltext'] = '<a class="disabled">全文</a>';
}
$column['manage edit'] = '<a href="' . zotop::url('database/field/edit', array('table' => $tablename, 'field' => $field['name'])) . '">修改</a>';
$column['manage delete'] = '<a href="' . zotop::url('database/field/delete', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm">刪除</a>';
table::row($column, 'select');
}
table::footer();
form::buttons(array('type' => 'submit', 'value' => '瀏覽選中項'));
form::footer();
page::bottom();
page::add('</div>');
page::add('</div>');
page::add('<div id="side">');
block::header('數據表信息');
table::header();
table::row(array('w60 bold' => '名稱', '2' => '' . $table['name'] . ''));
table::row(array('w60 bold' => '大小', '2' => '' . format::byte($table['size']) . ''));
table::row(array('w60 bold' => '記錄數', '2' => '<b>' . $table['rows'] . '</b> '));
table::row(array('w60 bold' => '整理', '2' => '' . $table['collation'] . ''));
table::row(array('w60 bold' => '創建時間', '2' => '' . $table['createtime'] . ''));
table::row(array('w60 bold' => '更新時間', '2' => '' . $table['updatetime'] . ''));
//table::row(array('w60 bold'=>'注釋','2'=>''.$table['comment'].''));
table::footer();
block::footer();
block::header('索引信息');
$column = array();
$column['i w10'] = '';
$column['field'] = '字段';
$column['type w30'] = '類型';
$column['manage dropindex'] = '刪除';
table::header('list', $column);
foreach ($indexes as $index) {
$column = array();
$column['i w10 center'] = '>';
$column['field'] = '<b>' . $index['field'] . '</b>';
$column['type w30'] = $index['type'];
$column['manage dropindex'] = '<a href="' . url::build('database/field/dropindex', array('table' => $tablename, 'index' => $index['name'])) . '" class="confirm">刪除</a>';
table::row($column, 'select');
}
table::footer();
block::footer();
page::add('</div>');
page::add('</div>');
page::footer();
}
示例10: onSystem
public function onSystem()
{
$header['title'] = '控製中心';
$phpinfo = array();
$server = $_SERVER['SERVER_ADDR'] . ' / ' . PHP_OS;
$php = $_SERVER['SERVER_SOFTWARE'];
$safemode = @ini_get('safe_mode') ? ' 開啟' : '關閉';
if (@ini_get('file_uploads')) {
$upload_max_filesize = ini_get('upload_max_filesize');
} else {
$upload_max_filesize = '<b class="red">---</b>';
}
$upload_filesize = format::byte(dir::size(ZOTOP_UPLOAD));
$database = zotop::db()->config();
$database['size'] = zotop::db()->size();
$database['version'] = zotop::db()->version();
$database['db'] = $database['hostname'] . ':' . $database['hostport'] . '/' . $database['database'];
page::header($header);
page::top();
page::navbar($this->navbar());
block::header('服務器信息');
table::header();
table::row(array('side 1 w60' => '服務器', 'main w300 1' => $server, 'side 2 w60 ' => 'WEB服務器', 'main 2' => $php));
table::row(array('side 1 w60' => '安全模式', 'main 1' => $safemode, 'side 2 w60 ' => 'PHP版本', 'main 2' => PHP_VERSION));
table::row(array('side 1 w60' => '程序版本', 'main 1' => zotop::config('zotop.version'), 'side 2 w60 ' => '程序根目錄', 'main 2' => ROOT));
table::footer();
block::footer();
block::header('文件夾權限<span>如果某個文件或目錄被檢查到“無法寫入”(以紅色列出),請即刻通過 FTP 或其他工具修改其屬性(例如設置為 777),以確保程序功能的正常使用</span>');
table::header();
table::row(array('side 1 w60' => '配置目錄', 'main w300 1' => '', 'side 2 w60 ' => '備份目錄', 'main 2' => ''));
table::row(array('side 1 w60' => '運行目錄', 'main w300 1' => '', 'side 2 w60 ' => '模塊目錄', 'main 2' => ''));
table::footer();
block::footer();
block::header('數據庫信息');
table::header();
table::row(array('side 1 w60' => '驅動名稱', 'main w300 1' => $database['driver'], 'side 2 w60 ' => '數據庫', 'main 2' => $database['db']));
table::row(array('side 1 w60' => '數據庫版本', 'main 1' => $database['version'], 'side 2 w60 ' => '占用空間', 'main 2' => $database['size']));
table::footer();
block::footer();
block::header('文件上傳');
table::header();
table::row(array('side 1 w60' => '上傳許可', 'main w300 1' => $upload_max_filesize, 'side 2 w60 ' => '已上傳文件', 'main 2' => '<span class="loading">' . $upload_filesize . '</span>'));
table::footer();
block::footer();
page::bottom();
page::footer();
}
示例11: array
$column = array();
$column['select'] = html::checkbox(array('name' => 'table', 'class' => 'selectAll'));
$column['order w30 center'] = '權重';
$column['status w30 center'] = '狀態';
$column['title'] = '名稱';
$column['model w60 center'] = '類型';
$column['category w100 center'] = '欄目名稱';
$column['creator w150'] = '發布者/發布時間';
$column['manage edit'] = '編輯';
$column['manage delete'] = '刪除';
table::header('list', $column);
foreach ($contents as $row) {
$column = array();
$column['select'] = html::checkbox(array('name' => 'id[]', 'value' => $row['id'], 'class' => 'select'));
$column['order w30 center'] = $row['order'] ? '<span class="red important">' . $row['order'] . '</span>' : '0';
$column['status w30 center'] = '<span class="zotop-icon zotop-icon-status' . (int) $row['status'] . '"></span>';
$column['title'] .= $row['link'] ? '<span class="zotop-icon zotop-icon-link" title="' . zotop::t('鏈接') . '"></span>' : '';
$column['title'] .= $row['image'] ? '<span class="zotop-icon zotop-icon-image" title="' . zotop::t('圖片') . '"></span>' : '';
$column['title'] .= '<span class="title textflow"><a href="' . zotop::url('content/content/preview/' . $row['id']) . '" ' . html::attributes('style', $row['style']) . ' target="_blank">' . $row['title'] . '</a></span>';
$column['model w60 center'] = isset($models[$row['modelid']]) ? '<div class="w60 textflow">' . $models[$row['modelid']]['title'] . '</div>' : '--';
$column['category w100 center'] = isset($categories[$row['categoryid']]) ? '<div class="w100 textflow"><a>' . $categories[$row['categoryid']]['title'] . '</a></div>' : '--';
$column['creator w150'] = '<b>' . $row['username'] . '</b>' . '<h5>' . time::format($row['createtime']) . '</h5>';
$column['manage edit'] = '<a href="' . zotop::url('content/content/edit/' . $row['id']) . '">編輯</a>';
$column['manage delete'] = (int) $row['system'] ? '<span class="disabled">刪除</span>' : '<a href="' . zotop::url('content/content/delete/' . $row['id']) . '" class="confirm1">刪除</a>';
table::row($column);
}
table::footer('選擇:<a href="javascript:void(0);" class="selectAll" flag="true">全部</a> - <a href="javascript:void(0);" class="selectAll" flag="false">無</a>');
form::buttons(array('type' => 'select', 'name' => 'operation', 'id' => 'operation', 'class' => 'short', 'options' => array('status100' => $statuses['100'], 'status0' => $statuses['0'], 'status-1' => $statuses['-1'], 'status-50' => $statuses['-50'], 'order' => '權重->', 'move' => '移動->', 'delete' => '永久刪除')), array('type' => 'text', 'name' => 'order', 'id' => 'order', 'value' => '50', 'title' => '權重參數,必須是數字', 'class' => 'small', 'style' => 'width:30px;padding:4px;display:none;'), array('type' => 'text', 'name' => 'categoryid', 'id' => 'categoryid', 'value' => $categoryid, 'class' => 'small', 'style' => 'width:30px;padding:4px;display:none;'), array('type' => 'text', 'name' => 'selectcategory', 'id' => 'selectcategory', 'value' => '選擇欄目…', 'title' => '選擇欄目…', 'readonly' => 'readonly', 'class' => 'small', 'style' => 'width:120px;padding:4px;display:none;cursor:pointer;'), array('type' => 'submit', 'value' => '執行操作'));
form::footer($pagination);
$this->bottom();
$this->footer();