/** * Render response body * @param array $env * @param \Exception $exception * @return string */ protected function renderBody(&$env, $exception) { $title = 'Oops! Exception detected'; $code = $exception->getCode(); $message = $exception->getMessage(); $file = $exception->getFile(); $line = $exception->getLine(); $trace = str_replace(array('#', '\\n'), array('<div>#', '</div>'), $exception->getTraceAsString()); $html = sprintf('<h1>%s</h1>', $title); $html .= '<p>Something is broken, the application could not run, Pulse has detected the following error:</p>'; $html .= '<h2>Details</h2>'; $html .= sprintf('<div><strong>Type:</strong> %s</div>', get_class($exception)); if ($code) { $html .= sprintf('<div><strong>Code:</strong> %s</div>', $code); } if ($message) { $html .= sprintf('<div><strong>Message:</strong> %s</div>', $message); } if ($file) { $html .= sprintf('<div><strong>File:</strong> %s</div>', $file); } if ($line) { $html .= sprintf('<div><strong>Line:</strong> %s</div>', $line); } if ($trace) { $html .= '<h2>Trace</h2>'; $html .= sprintf('<pre>%s</pre>', $trace); } return sprintf("<!doctype html><html lang=\"es\"><head><meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><link rel=\"stylesheet\" href=\"" . asset('bootstrap.min.css') . "\"><link rel=\"stylesheet\" href=\"" . asset('styles.css') . "\"><title>%s</title><link rel=\"icon\" type=\"image/png\" href=\"" . asset('pulseLogo.png') . "\" /></head><body><nav class=\"navbar navbar-inverse navbar-fixed-top\"> <div class=\"container\"><div class=\"navbar-header\"><button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#navbar\" aria-expanded=\"false\" aria-controls=\"navbar\"><span class=\"sr-only\">Toggle navigation</span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span></button><a class=\"navbar-brand\" href=\"" . basePath() . "\"><img src=\"" . asset('pulseLogo.png') . "\" width=\"25\"> PULSE Framework</a></div><div id=\"navbar\" class=\"collapse navbar-collapse\"><ul class=\"nav navbar-nav\"><li><a href=\"" . basePath() . "\">Página principal</a></li><li><a href=\"" . uri('documentationUrl') . "\">Documentation</a></li><li><a href=\"" . uri('communityUrl') . "\">Pulse Community</a></li><li><a href=\"" . uri('tutosUrl') . "\">Tutorials</a></li></ul></div></div></nav><div class=\"container\"><div class=\"starter-template\">%s</div></div><script src=\"" . asset('jquery.min.js') . "\"></script><script src=\"" . asset('bootstrap.min.js') . "\"></script></body></html>", $title, $html); }
function a($uri, $anchor, $uriQuery = "") { if ($uriQuery === "") { return sprintf('<a href="%s">%s</a>', uri($uri), $anchor); } else { return sprintf('<a href="%s?%s">%s</a>', uri($uri), $uriQuery, $anchor); } }
/** * Get the specified URI info. * * @param string $name * * @return mixed */ function uri_info($name = null) { static $container = array(); if (empty($container)) { $url = uri(); $container = parse_url($url); } return null === $name ? $container : $container[$name]; }
function fake_cron_public_theme_header() { echo "<script type='text/javascript' src='" . WEB_PLUGIN . "/FakeCron/views/javascripts/fakecron.js'></script>"; $tasksTable = get_db()->getTable("FakeCron_Task"); $html = "<script type='text/javascript'>"; $html .= "FakeCron.baseURL='" . uri('fake-cron/tasks/fakecron/') . "' ; "; $html .= "FakeCron.tasks = " . $tasksTable->buildTasksJSON() . ";"; $html .= "</script>"; echo $html; }
function auth_require($target = false) { global $config; if (auth_ok()) { return; } if ($target) { redirect(uri($target)); } exit; }
/** * @httpMethod post * * @check_client_id */ public function update() { $user = $this->aclUser; $result = $this->getLogic("status")->post($user->id, $this->comment); if ($this->isAjaxRequest()) { if ($result->isSuccess()) { $this->ajax->values = array("id" => $result->aStatus->id, "name" => $user->name, "comment" => showComment($result->aStatus->comment), "updated" => showUpdatedAt($result->aStatus->created_at), "user_home" => uri("n: users, c: {$user->name}, a: "), "image_uri" => user_avatarize($user->id), "status_uri" => uri("c: index, a: status, param: {$result->aStatus->id}"), "trash_gif" => linkto("images/trash.gif"), "reply_gif" => linkto("images/reply.gif")); } else { $this->ajax->failure(); } } else { $this->redirect->to("n: default, c: user, a: home"); } }
function showComment($comment) { static $uri = ""; if ($uri === "") { $uri = uri("n: users, c: %s, a: "); } $comment = h($comment); if (preg_match('/^@(\\w{1,20})/', $comment, $matches) === 1) { $_uri = sprintf($uri, $matches[1]); $comment = preg_replace("/{$matches[0]}/", "@<a href=\"{$_uri}\">{$matches[1]}</a>", $comment, 1); } // @todo ちゃんとやる? <a href="...">...</a>とか. $comment = preg_replace('~(https?://[a-zA-Z0-9][\\w\\-\\.]*\\.[a-z]+/[\\w\\-\\.\\~\\*\\?\\+\\$/@&=%#:;,]*)~', '<a href="$0" target="_blank">$1</a>', $comment); return $comment; }
public function rss() { $this->layout = false; $this->response->setHeader("Content-Type", "application/rss+xml; charset=utf-8"); $rss = new Sabel_Rss_Writer(); $rss->setInfo(array("title" => "Phwittr public timeline", "language" => "ja")); $helper = new Helpers_Paginator_Status(); $paginator = $helper->getPublicStatuses(array()); if ($paginator->results) { foreach ($paginator->results as $item) { $rss->addItem(array("uri" => "http://" . $_SERVER["SERVER_NAME"] . uri("a: status, param: {$item->id}"), "title" => mb_strimwidth($item->User->user_name . ": " . $item->comment, 0, 35, "..."), "content" => $item->User->user_name . ": " . $item->comment, "date" => $item->created_at)); } } $this->contents = $rss->output(); }
static function bootstrap() { // include libs $whichend = is_backend() ? 'backend' : 'frontend'; // jquery-ui if (!Asset::checkAssetAdded('jquery-ui', 'js', $whichend)) { $js = "<script src='" . uri('libraries/jquery-ui/jquery-ui.min.js', false) . "'></script>"; Asset::addDynamicAsset('jquery-ui', 'js', $whichend, $js); } if (!Asset::checkAssetAdded('jquery-ui', 'css', $whichend)) { $js = "<link rel=\"stylesheet\" href=\"" . uri('libraries/jquery-ui/jquery-ui.theme.min.css', false) . "\">"; $js .= "\n<link rel=\"stylesheet\" href=\"" . uri('libraries/jquery-ui/jquery-ui.structure.min.css', false) . "\">"; Asset::addDynamicAsset('jquery-ui', 'css', $whichend, $js); } }
public function render($module, $model) { $rtn = ""; $prepopulate = '($object->isNew() ? ' . "(isset(\$_POST['{$this->name}']) ? htmlentities(\$_POST['{$this->name}']) : '')" . ' : htmlentities($object->get' . format_as_class_name($this->name) . '()))'; $rtn .= "\n<div class='form-group'>\r\n <label for='{$this->name}'>{$this->name}</label>\r\n <textarea class='form-control' rows='5' id='{$this->name}' name='{$this->name}'" . ($this->required ? ' required' : '') . ">[[[ echo {$prepopulate} ]]]</textarea>\r\n</div>\r\n"; // ckeditor if ($this->wysiwyg) { if (!Asset::checkAssetAdded('ckeditor', 'js', 'backend')) { $js = "\n<script type='text/javascript' src='" . uri('libraries/ckeditor/ckeditor.js', false) . "'></script>\n"; Asset::addDynamicAsset('ckeditor', 'js', 'backend', $js); $rtn .= $js; } $rtn .= "<script type='text/javascript'>CKEDITOR.replace('{$this->name}');</script>"; } return $rtn; }
public function sendActivationKey($recipient, $key) { $subject = "Phwittr本登録用メール"; $body = <<<BODY Phwittrへのご登録ありがとうございます。 Phwittrは「いまなにしてる?」という質問に短い文章で答えることによって、 友だちや家族、職場の同僚とつながり合うサービスです。 登録を完了するために下記のURLをクリックしてください。 http://%s BODY; $body = sprintf($body, $_SERVER["SERVER_NAME"] . uri("c: register, a: auth, param: {$key}")); $this->send("register@" . $this->config["domain"], $recipient, $subject, $body); }
function url($params = array()) { if (count($params) == 0) { return 'http://' . host() . uri(); } else { $url = 'http://' . host() . uri(); $first = true; foreach ($params as $var => $val) { if ($first) { $url .= '?' . $var . '=' . $val; $first = false; } else { $url .= '&' . $var . '=' . $val; } } return $url; } }
public function render($module, $model) { $rtn = ""; $prepopulate = '($object->isNew() ? ' . "(isset(\$_POST['{$this->name}']) ? htmlentities(\$_POST['{$this->name}']) : '')" . ' : htmlentities($object->get' . format_as_class_name($this->name) . '()))'; $rtn .= "\n<div class='form-group'>\r\n <label class='col-sm-2 control-label' for='{$this->name}'>{$this->name} " . ($this->required ? $this->mandatory_field : '') . "</label>\r\n <div class='col-sm-10'>\r\n <textarea class='form-control' rows='5' id='{$this->name}' name='{$this->name}'" . ($this->required ? ' required' : '') . ">[[[ echo {$prepopulate} ]]]</textarea>\r\n </div>\r\n</div>\r\n<div class='hr-line-dashed'></div>\r\n"; // ckeditor if ($this->wysiwyg) { if (!Asset::checkAssetAdded('ckeditor', 'js', 'backend')) { $js = "\n<script type='text/javascript' src='" . uri('libraries/ckeditor/ckeditor.js', false) . "'></script>\n"; Asset::addDynamicAsset('ckeditor', 'js', 'backend', $js); $rtn .= $js; } $toolbar = false; if ($this->wysiwyg_toolbar) { $toolbar_name = "TOOLBAR_" . strtoupper($this->wysiwyg_toolbar); $toolbar = constant("self::{$toolbar_name}"); } $rtn .= "<script type='text/javascript'>CKEDITOR.replace('{$this->name}'" . ($toolbar ? ", {$toolbar}" : "") . ");</script>"; } return $rtn; }
public function login() { $user = new User($this->param->user); $remember_me = $this->params->remember_me; if ($user->email && $user->password) { if ($user->load()) { if ($remember_me) { $this->cookie('user_email', $user->email, time() + 60 * 60 * 24 * 30); } $this->session->user_id = $user->id; $this->session->user_name = $user->name; } else { $this->flash->now = t('FORGOT_PASSWORD_QUESTION', array('LINK' => uri("user/forgot_password?email={$user->email}"))); } } else { // Logic goes here for missing user login details } $this->render->user = $user; return array($user); // for testing }
function out($content = array(), $header = null) { if (strtolower(uri(2)) == "xml") { header('Content-type: text/xml'); echo $this->array2xml($content); } else { if (strtolower(uri(2)) == "json") { header('Content-Type: application/json'); echo json_encode($content); } else { if (is_array($content) || is_object($content)) { header('Content-Type: application/json'); echo json_encode($content); } else { if (!is_null($header)) { header('Content-Type: ' . $header); } echo $content; } } } }
public function flash_and_cookie_and_session_test() { $time_in_cookie = $this->cookie->remember_the_time_now; $time_in_session = $this->session->remember_the_time_now; $time_now = time(); $cookie_is_stale = $time_now - $time_in_cookie > self::STALE_SECS; $session_is_stale = $time_now - $time_in_session > self::STALE_SECS; if ($cookie_is_stale || $session_is_stale) { $this->flash->notice = 'Flash should work'; $this->cookie->remember_the_time_now = $time_now; $this->session->remember_the_time_now = $time_now; $type = $this->app->get_content_type(); header('Location: ' . uri("controller_test.{$type}?{$time_now}")); exit; } $this->should('set a "flash" notice', $this->flash->notice === 'Flash should work', $this->flash->notice); $this->flash->now(array('notice2' => 'Flash now should also work')); $this->should('set a "flash now" notice', $this->flash->notice2 === 'Flash now should also work', $this->flash->notice2); $this->flash->now = 'Flash now (conventional) should also work'; $this->should('set a "flash now" (conventional) notice', $this->flash->notice === 'Flash now (conventional) should also work', $this->flash->notice); $this->should('set a cookie variable', !$cookie_is_stale, $time_in_cookie); $this->should('set a session variable', !$session_is_stale, $time_in_session); }
private function _jump($status = true, $message = '', $ajax_data = null) { if ($this->getTemplateVars('close_window')) { $this->assign('jump_url', 'javascript:window.close();'); } $this->assign('status', $status); $this->assign('message', $message); if ($status) { if (!$this->getTemplateVars('jump_url')) { $this->assign('jump_url', uri()); } if (!$this->getTemplateVars('wait_second')) { $this->assign('wait_second', 1); } } else { if (!$this->getTemplateVars('jump_url')) { $this->assign('jump_url', 'javascript:history.back(-1);'); } if (!$this->getTemplateVars('wait_second')) { $this->assign('wait_second', 5); } } $this->display('Public/redirect'); }
?> : <?php echo $total_results; ?> </h1> <div class="class='metadataBrowserDisplay"> <?php if (count($this->paginator)) { ?> <ul> <?php foreach ($this->paginator as $category) { ?> <li class="category"> <?php echo '<a class="browse-link" href="' . uri("categories/browse/{$elset}/{$elname}/" . urlencode($category['text'])) . '">' . $category['text'] . '</a>'; ?> </li> <?php } ?> </ul> <?php } ?> </div> <div id="pagination-bottom" class="pagination"><?php echo pagination_links(); ?> </div>
} ?> </ul> </div> </aside> </div> <div class="widgets widgets-3 one-fourth"> <aside class="widget widget_recent_entries" id="recent-posts-4"> <h3 class="widget-title">News</h3> <ul> <?php foreach (News::findAll(3) as $news) { ?> <li> <a href="<?php echo uri('news/' . $news->getId()); ?> "><?php echo $news->getTitle(); ?> </a> </li> <?php } ?> </ul> </aside> </div> <div class="widgets widgets-4 one-fourth"> <aside class="widget widget-educator-contact" id="widget_educator_contact-3">
<div class="row"> <div class="col-xs-12"> <div class="panel panel-default"> <div class="panel-heading"><?php i18n_echo(array('en' => 'Edit', 'zh' => '编辑')); ?> </div> <div class="panel-body"> <?php echo Message::renderMessages(); ?> <form class="form-horizontal" role="form" method="POST" action="<?php echo uri('admin/block/edit/' . $object->getId()); ?> "> <div class='form-group'> <label class='col-sm-2 control-label' for='content'>content <span style="color: rgb(185,2,0); font-weight: bold;">*</span></label> <div class='col-sm-10'> <textarea class='form-control' rows='5' id='content' name='content' required><?php echo $object->isNew() ? isset($_POST['content']) ? htmlentities($_POST['content']) : '' : htmlentities($object->getContent()); ?> </textarea> </div> </div> <div class='hr-line-dashed'></div> <script type='text/javascript' src='/libraries/ckeditor/ckeditor.js'></script>
if (isset($_POST['submit'])) { $password = isset($_POST['password']) ? trim(strip_tags($_POST['password'])) : null; $password_confirm = isset($_POST['password_confirm']) ? trim(strip_tags($_POST['password_confirm'])) : null; // validation if (is_null($password) || strlen($password) < 6) { Message::register(new Message(Message::DANGER, i18n(array('en' => 'Password needs to be more than 6 characters. Please try again', 'zh' => '密码至少需要6位。请重试')))); HTML::forwardBackToReferer(); } else { if ($password != $password_confirm) { Message::register(new Message(Message::DANGER, i18n(array('en' => 'Password and confirmed password don\'t match. Please try again', 'zh' => '密码和确认密码不符。 请重试')))); HTML::forwardBackToReferer(); } } // success $user->putPassword($password); $user->save(); Message::register(new Message(Message::SUCCESS, i18n(array('en' => 'Your password has been successfully updated. You may sign in below', 'zh' => '您的密码已经成功更新了。您现在可以登录了')))); HTML::forward('users'); } // override this call if "site" module has the override controller $override_controller = MODULESROOT . '/site/controllers/siteuser/forget_password_reset.php'; if (is_file($override_controller)) { require $override_controller; exit; } // default $html = new HTML(); $html->renderOut('core/backend/single_form_header', array('title' => i18n(array('en' => 'Reset your password', 'zh' => '重置您的密码')))); echo SiteUser::renderPasswordResetForm(); $html->renderOut('core/backend/single_form_footer', array('extra' => '<div style="text-align: center;"><small class="signup"><a href="' . uri('users') . '">' . i18n(array('en' => 'go back to login', 'zh' => '返回登录界面')) . '</a></small></div>')); exit;
<?php // override this call if "site" module has the override controller $override_controller = MODULESROOT . '/site/controllers/confirm.php'; if (is_file($override_controller)) { require $override_controller; exit; } // default view $html = new HTML(); $html->renderOut('core/backend/single_form_header', array('title' => i18n(array('en' => 'Hello', 'zh' => '你好')))); $messages = Message::renderMessages(); echo empty($messages) ? i18n(array('en' => '<i>No messages</i>', 'zh' => '<i>暂时没有信息</i>')) : $messages; $html->renderOut('core/backend/single_form_footer', array('extra' => '<div style="text-align: center;"><small><a href="' . uri('') . '">' . i18n(array('en' => 'go back to homepage', 'zh' => '返回首页')) . '</a></small></div>'));
<?php // register admin $user = User::getInstance(); if (is_backend() && $user->isLogin()) { Backend::registerSideNav(' <li> <a href="#"><i class="fa fa-folder-open"></i> ' . i18n(array('en' => 'Project', 'zh' => '项目')) . '<span class="fa arrow"></span></a> <ul class="nav nav-second-level collapse"> <li><a href="' . uri('admin/project/list') . '">' . i18n(array('en' => 'List', 'zh' => '列表')) . '</a></li> <li><a href="' . uri('admin/project/create') . '">' . i18n(array('en' => 'Create', 'zh' => '创建')) . '</a></li> </ul> </li> '); }
<div class="blank20"></div> <div id="tagscontent" class="right_box"> <form name="settingform" id="settingform" action="<?php echo uri();?>" method="post"> <table border="0" cellspacing="2" cellpadding="4" class="list" name="table1" id="table1" width="100%"> <tbody> <tr> <td> <div style="margin-left:10px; margin-top:10px;"> {form::textarea('hottag',$hottags['hottag'],'cols=50 rows=50 style="height:150px;"')} <div class="blank20"></div> <span> <br/>每行为一个标签 <br/><br/> <strong>如:</strong><br/> <br/>(1)热门标签一 <br/>(2)热门标签二 <br/>(3)热门标签三 <br/>(4)热门标签四 <br/>(5)热门标签五 </span> </div> </td> </tr> </tbody> </table> </div>
<?php defined('ROOT') or exit('Can\'t Access !'); ?> <div class="blank20"></div> <form name="listform" id="listform" action="<?php echo uri(); ?> &o=" method="post"> <div class="blank5"></div> <div id="tagscontent" class="right_box"> <table border="0" cellspacing="0" cellpadding="0" id="table1" width="100%"> <thead> <tr class="th"> <th><input title="点击可全选本页的所有项目" onclick="CheckAll(this.form)" type="checkbox" name="chkall"> </th> <th>ID</th> <th>名字</th> <th>规则</th> <th>所属</th> <th>操作</th> </tr> </thead> <tbody> <?php foreach ($data as $id => $htmlrule) { $id += 1; ?> <tr class="s_out" > <td align="center" ><input onclick="c_chang(this)" type="checkbox" value="<?php
<?php $cid = isset($vars[1]) ? strip_tags($vars[1]) : null; $country = Country::findById($cid); $html = new HTML(); $html->renderOut('site/components/html_header', array('title' => 'Study in ' . $country->getName(), 'body_class' => 'single single-ib_educator_course has-toolbar')); $html->output('<div id="page-container">'); //$html->renderOut('site/components/toptoolbar'); $html->renderOut('site/components/header'); $html->renderOut('site/components/banner', array('country' => $country)); $html->renderOut('site/country', array('breadcrumb' => $html->render('site/components/breadcrumb', array('items' => array('Home' => uri(''), $country->getName() => false))), 'country' => $country, 'institutions' => Institution::findAllByCountryId($country->getId()), 'courses' => Course::findAllByCountryId($country->getId()), 'sidebar_right' => $html->render('site/components/sidebar_right', array('blocks' => array($html->render('site/components/sidebar_block_countries'), $html->render('site/components/sidebar_block_recent_news'), $html->render('site/components/sidebar_block_apply')))))); $html->renderOut('site/components/countries_block', array('title' => 'Other countries to apply for', 'countries' => Country::findAllExcluding($country->getId()))); $html->renderOut('site/components/footer'); $html->output('</div>'); $html->renderOut('site/components/page_footer'); $html->renderOut('site/components/html_footer');
$('.btn', tr).prop('disabled', false); $('.upload i', tr).removeClass('fa-spin').removeClass('fa-spinner').addClass('fa-upload'); } }); }); // action when removing an image $(document).on('click', '#image .remove', function(){ var tr = $(this).parents('.file-field'); if (typeof($(this).data('uri')) !== 'undefined') { var img = $(this).data('uri'); $('.btn', tr).prop('disabled', true); $('.remove i', tr).addClass('fa-spin').addClass('fa-spinner').removeClass('fa-remove'); // ajax to remove the image $.ajax({ url: '<?php echo uri("modules/carousel/controllers/backend/carousel_form_field_image" . "_remove.php", false); ?> ?path=' + encodeURIComponent(img), type: 'POST', dataType: 'json', success: function(data, textStatus, jqXHR) { if (typeof(data.error) !== 'undefined') { alert('<?php echo i18n(array('en' => 'Error: ', 'zh' => '错误: ')); ?> ' + data.error); tr.html(addImageRow(false, true)); updateHiddenTextarea(container); } else { tr.html(addImageRow(false, true)); updateHiddenTextarea(container);
<?php // include jquery-ui library if not if (is_frontend()) { $already_included_at_frontend = Asset::checkAssetAdded('jquery-ui', 'js', 'frontend') || Asset::checkAssetAdded('jquery_ui', 'js', 'frontend'); if (!$already_included_at_frontend) { echo "\n" . '<script type="text/javascript" src="' . uri('modules/core/assets/jquery-ui-1.11.4.custom/jquery-ui.min.js') . '"></script>' . "\n"; echo "\n" . '<script type="text/javascript">loadCSS("' . uri('modules/core/assets/jquery-ui-1.11.4.custom/jquery-ui.min.css') . '")</script>' . "\n"; Asset::addDynamicAsset('jquery_ui', 'js', 'frontend', '<script type="text/javascript" src="' . uri('modules/core/assets/jquery-ui-1.11.4.custom/jquery-ui.min.js') . '"></script>'); } } else { if (is_backend()) { $already_included_at_backend = Asset::checkAssetAdded('jquery-ui', 'js', 'backend') || Asset::checkAssetAdded('jquery_ui', 'js', 'backend'); if (!$already_included_at_backend) { echo "\n" . '<script type="text/javascript" src="' . uri('modules/core/assets/jquery-ui-1.11.4.custom/jquery-ui.min.js') . '"></script>' . "\n"; echo "\n" . '<script type="text/javascript">loadCSS("' . uri('modules/core/assets/jquery-ui-1.11.4.custom/jquery-ui.min.css') . '")</script>' . "\n"; Asset::addDynamicAsset('jquery_ui', 'js', 'backend', '<script type="text/javascript" src="' . uri('modules/core/assets/jquery-ui-1.11.4.custom/jquery-ui.min.js') . '"></script>'); } } } ?> <script type='text/javascript'> $('#69Wf0 .datepicker').datepicker({ dateFormat: '@' ,altField: "#69Wf0 .altFormat", altFormat: "yy-mm-dd" ,changeMonth: 1 ,changeYear: 1 ,yearRange: 'c-5:c+10' }); $('#69Wf0 .input-group-addon').css('cursor', 'pointer').on('click', function(){ $('#69Wf0 .datepicker').datepicker('show');
<div class="blank20"></div> <a href="index.php?case=website&act=addwebsite&admin_dir={get('admin_dir')}&site=default" class="btn_c">增加站点</a> <div class="blank10"></div> <div id="tagscontent" class="right_box"> <form name="listform" id="listform" action="<?php echo uri();?>" method="post"> <table border="0" cellspacing="0" cellpadding="0" name="table1" id="table1" width="100%"> <thead> <tr class="th"> <th align="center"><!--id-->编号</th> <th align="center"><!--name-->站点</th> <th align="center"><!--url-->地址</th> <th align="center">操作</th> </tr> </thead> <tbody> {loop $data $d} <tr class="s_out" onmouseover="m_over(this)" onmouseout="m_out(this)"> <td align="center" >{$d['id']}</td> <td align="left" style="padding-left:10px;">{$d['name']}</td> <td align="left" style="padding-left:10px;">{$d['url']}</td> <td align="center"> <span class="hotspot" onmouseover="tooltip.show('切换管理网站内容');" onmouseout="tooltip.hide();"><a href="{$d['url']}index.php?case=admin&act=remotelogin&admin_dir={$d['admindir']}&args={$d['args']}&submit=1" target="_blank" class="a_management"></a></span> <span class="hotspot" onmouseover="tooltip.show('点击编辑网站设置');" onmouseout="tooltip.hide();"><a href="<?php echo modify("act/editwebsite/id/".$d['path']);?>" class="a_edit"></a></span> <span class="hotspot" onmouseover="tooltip.show('删除这个网站?');" onmouseout="tooltip.hide();"><a onclick="javascript: return confirm('确实要删除吗?');" href="<?php echo modify("/act/deletewebsite/id/".$d['path']);?>" class="a_del"></a></span> </td>
?> <?php foreach ($categoryValues as $value) { ?> <li class='category'><?php echo metadata_browser_create_link($category->element_id, $value); ?> </li> <?php } ?> </ul> </div> <?php if ($category->getCategoryCount() >= 10) { ?> <ul class="navigation item-tags" id="secondary-nav"> <li>Browse by: </li> <?php echo nav(array('Title' => uri('items/browse', array('sortby' => 'dc.title')), 'Category' => uri('category'), 'Tag' => uri('items/tags'), 'Creator' => uri('items/browse', array('sortby' => 'dc.creator')), 'Most Recent' => uri('items/browse', array('sortby' => 'omeka.modified', 'sortorder' => 'desc')))); ?> </ul> <?php } ?> </div> <?php foot();