public function __construct() { parent::__construct(); $this->is_login(); $this->load->model('category_model', 'cm'); Assets::add_js('lib/treeview.js'); Assets::add_js('category/category.js'); assets::add_css('category/category.css'); }
<td><?php echo $c->getId(); ?> </td> <td><?php echo $c->getName(); ?> </td> <td> <a href="/containers_admin/edit/<?php echo $c->getId(); ?> "><?php echo assets::img_tag('app/admin/edit_icon.gif', array('alt' => 'Edit', 'title' => 'Edit this item'), true); ?> </a> <a href="/containers_admin/delete/<?php echo $c->getId(); ?> "><?php echo assets::img_tag('app/admin/delete_item.gif', array('alt' => 'delete', 'title' => 'Delete this item'), true); ?> </a> </td> </tr> <?php $i++; } ?> </tbody> </table>
echo form::open('/' . $controller . '/edit', ''); ?> <?php echo form::hidden('form_id', $row->gid); ?> <?php echo form::hidden('controller', $controller); ?> <?php echo form::hidden('form_gallery', $row->gallery); ?> <?php echo form::hidden('current', $this->uri->string()); ?> <?php echo assets::img_tag('global/auth_admin/pencil.png', array('title' => 'Edit this item'), TRUE); ?> <?php echo form::close(); ?> </div> <?php } ?> <?php $title = (isset($row->title) and !empty($row->title)) ? $row->title : ''; ?> <div class="im"> <a href="<?php
} ?> <div class="form-row" style="margin: 1em; height:1px;"></div> <div class="form-row surround"> <div class="row-title">User Admin</div> <div class="row-content"> <?php echo form::open('auth_admin/edit', '', array('form_id' => $user->id)); echo assets::img_tag('global/auth_admin/pencil.png', array('title' => 'edit'), TRUE); echo form::close(); ?> <?php echo form::open('auth_admin/del', '', array('form_id' => $user->id)); echo assets::img_tag('global/auth_admin/cross.png', array('title' => 'delete'), TRUE); echo form::close(); ?> </div> </div> </div> </fieldset> </div> <?php } else { ?> No user <?php //=$error_message ?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-br"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Kennel Setup</title> <meta name="description" content="Kennel Framework Setup" /> <link rel="stylesheet" type="text/css" href="<?php print assets::css('ksetup.css'); ?> " /> </head> <body> <div id="wrapper"> <div id="header"> <img src="<?php print assets::img('k_logo.png'); ?> " alt="Kennel Framework" /> </div> <div id="content"> <h1>First Steps</h1> <p class="msg error">settings.php not found</p> <div id="footer" ></div> </div> </div> <?php if (isset($_GET['omg'])) { ?>
"> <input type="hidden" name="action" value="deactivate"> <input type="submit" name="submit" value="De-Activate"> </form> <?php } ?> <?php if ($status != -1) { ?> <form method="POST" action="/plugins_admin/action"> <input type="hidden" name="plugin_name" value="<?php echo $p->getName(); ?> "> <input type="hidden" name="action" value="delete"> <?php echo assets::img_tag('/cache/img/admin/delete_item.gif', array('alt' => 'Delete', 'name' => 'submit', 'title' => 'Delete this item'), true); ?> </form> <?php } ?> </td> </tr> <?php $i++; } ?> </tbody> </table>
if (Acl::instance()->check(Steamauth::instance()->get_role(), null, 'edit')) { ?> <?php echo form::open('/' . $controller . '/edit', ''); ?> <?php echo form::hidden('form_id', $item->id); ?> <?php echo form::hidden('controller', $controller); ?> <?php echo form::hidden('current', uri::string()); ?> <?php echo assets::img_tag('/cache/img/admin/edit_icon.gif', array('alt' => 'Edit', 'name' => 'submit', 'title' => 'Edit this item'), true); ?> <?php echo form::close(); ?> <?php } ?> </td> </tr> <?php $i++; } ?> </tbody> </table>
/** * */ static function getbackuppath($id) { return assets::getbackupfolder($id) . "/" . assets::getbackupname($id); }
<div class="container"> <div class="row footer-top"> <p class="text-center"><a href="<?php echo zmf::config('domain'); ?> " target="_blank"><?php echo zmf::config('sitename'); ?> </a><?php echo zmf::config('version'); ?> <?php echo zmf::config('copyright'); ?> <?php echo zmf::config('beian'); ?> <?php echo CHtml::link('关于本站', array('siteinfo/view', 'code' => 'about')); ?> </p> </div> <?php assets::jsConfig('wedding'); echo zmf::config('tongji'); ?> </div> </footer> <?php $this->endContent();
if (Acl::instance()->check(Steamauth::instance()->get_role(), null, 'edit')) { ?> <?php echo form::open('/' . $controller . '/edit', ''); ?> <?php echo form::hidden('form_id', $item->id); ?> <?php echo form::hidden('controller', $controller); ?> <?php echo form::hidden('current', uri::string()); ?> <?php echo assets::img_tag('global/auth_admin/pencil.png', array('alt' => 'Edit', 'name' => 'submit', 'title' => 'Edit this item'), true); ?> <?php echo form::close(); ?> <?php } ?> </td> </tr> <?php $i++; } ?> </table>
$id = assets::version_backup(arg("id")); if (!$id) { header('HTTP/1.1: 304 Not Modified Error on create'); exit; } echo json_encode(model_json::node($id, 1, $NODE_TAG | $NODE_PRM)); break; case "version_increment": if (!assets::version_increment(arg("id"), arg("message"))) { header("HTTP/1.1: 304 Not Modified Asset Not updated"); exit; } echo json_encode(true); break; case "version_increment2": if (!assets::version_increment2(arg("id"), arg("message"))) { header("HTTP/1.1: 304 Not Modified Asset Not updated"); exit; } echo json_encode(true); break; case "recycle": if (!DAM::recycle(arg('id'))) { header("HTTP/1.1: 304 Not Modified Could not move element to trash"); exit; } echo json_encode(true); break; case "empty_trashcan": if (!($ret = DAM::empty_trashcan())) { header('HTTP/1.1: 404 Not Found');
<?php echo assets::img_tag($o->rp('row')->src, array('id' => $o->form->get_form_name() . '-' . $o->rp('name'), 'name' => $o->rp('name'), 'title' => $o->rp('row')->field, 'value' => $o->rp('row')->value, 'class' => $o->rp('row')->class), TRUE);
<span class="caret"></span></a> <ul class="dropdown-menu"> <li><?php echo CHtml::link('<i class="icon-home"></i> ' . zmf::t('homepage'), array('users/index', 'id' => Yii::app()->user->id), array('role' => 'menuitem', 'target' => '_blank')); ?> </li> <li><?php echo CHtml::link('<i class="icon-cog"></i> ' . zmf::t('setting'), array('users/config'), array('role' => 'menuitem', 'target' => '_blank')); ?> </li> <li><?php echo CHtml::link('<i class="icon-signout"></i> ' . zmf::t('logout'), array('site/logout'), array('role' => 'menuitem')); ?> </li> </ul> </li> </ul> <?php } ?> </div> </div> </div> <?php echo $content; assets::jsConfig($this->currentModule); echo zmf::config('tongji'); ?> <?php $this->endContent();
?> <?php echo form::hidden('controller', $controller); ?> <?php echo form::hidden('current', uri::string() . $u); ?> <?php echo form::hidden('current_status', $item->status); ?> <?php $sa = array('Publish', 'Archive', 'Suspend'); $s = $sa[$item->status]; ?> <?php echo assets::img_tag('/cache/img/admin/change_status.gif', array('alt' => 'Status Change', 'name' => 'submit', 'title' => $s . ' item'), true); ?> <?php echo form::close(); ?> <?php } ?> </td> </tr> <?php $i++; } ?> </tbody> </table>
echo $this->keywords; } else { echo zmf::config('siteKeywords'); } ?> " /> <meta name="description" content="<?php if (!empty($this->pageDescription)) { echo $this->pageDescription; } else { echo zmf::config('siteDesc'); } ?> " /> <?php assets::loadCssJs($this->currentModule); ?> <title><?php echo CHtml::encode($this->pageTitle); ?> </title> </head> <body> <h2 class="title ui-border-b"> <a href="<?php echo zmf::config('baseurl'); ?> "><?php echo zmf::t('indexPage'); ?> </a>
</li> </ul> </div> <div id="copyright"> <span class="copyright_text"><?php echo zmf::config('copyright'); echo CHtml::link(zmf::config('sitename'), zmf::config('baseurl')); ?> <a href="http://www.miibeian.gov.cn" target="_blank"><?php echo zmf::config('beian'); ?> </a></span> </div> </footer> <?php assets::jsConfig('web'); echo zmf::config('tongji'); ?> <script type="text/javascript"> $('.ui-searchbar').click(function(){ $('.ui-searchbar-wrap').addClass('focus'); $('.ui-searchbar-input input').focus(); }); $('.ui-searchbar-cancel').click(function(){ $('.ui-searchbar-wrap').removeClass('focus'); }); $('.header-right').click(function(){ $('.header-select-holder').toggle(); $('.header-select-holder').click(function(){ if($('.header-select-holder').css('display')!='none'){ $('.header-select-holder').hide();
<meta name="description" content="<?php if (!empty($this->pageDescription)) { echo $this->pageDescription; } else { echo zmf::config('siteDesc'); } ?> " /> <?php assets::loadCssJs('mobile'); ?> <link rel="shortcut icon" href="<?php echo zmf::config('baseurl'); ?> favicon.ico" type="image/x-icon" /> <title><?php echo CHtml::encode($this->pageTitle); ?> </title> </head> <body ontouchstart> <?php echo $content; ?> <?php assets::jsConfig('mobile'); ?> </body> </html>
echo zmf::config('baseurl'); ?> ;icon-uri=<?php echo zmf::config('baseurl'); ?> favicon.ico" /> <link rel="shortcut icon" href="<?php echo zmf::config('baseurl'); ?> favicon.ico" type="image/x-icon" /> <link rel="canonical" href="<?php echo $this->canonical; ?> "> <?php assets::loadCssJs('web'); ?> <title><?php echo CHtml::encode($this->pageTitle); ?> </title> </head> <body> <?php echo $content; ?> <?php $this->renderPartial('/common/footer'); ?> </body> </html>
?> <div class="message message-is-notice"> <span class="message-content"><?php __($welcome); ?> </span> <span class="message-toggle"><i>×</i></span> </div> <?php } ?> <?php echo $form; ?> </div> <?php echo assets::js(); ?> <script> $('.message').on('click', function() { $(this).addClass('hidden'); }); </script> </body> </html>
<?php $u = isset($_GET['ajax']) ? '?ajax=true' : ''; ?> <div class="form-row form-submit surround <?php echo $o->rp('row')->divclass; ?> "> <div class="row-content <?php echo $o->rp('row')->class; ?> surround" style="float: left"> <?php echo assets::img_tag($o->rp('row')->src, array('id' => $o->form->get_form_name() . '-' . $o->rp('name'), 'name' => $o->rp('name'), 'title' => $o->rp('row')->field, 'value' => $o->rp('row')->value, 'class' => $o->rp('row')->class, 'style' => 'margin-top:0;'), TRUE); ?> <a href="<?php echo url::base(); ?> /<?php echo Kohana::instance()->input->post('current') . $u; ?> " style="margin: 0 1em 0 0;"> <?php echo assets::img_tag($o->rp('row')->cancelsrc, array('title' => 'Cancel')); ?> </a> </div> </div>