예제 #1
0
 public function __social_media()
 {
     $view = new View('zest/tabs');
     $tabs = array(html::image('http://www.twitter.com/favicon.ico', 'twitter') . ' twitter' => $this->__twitter(), html::image('http://www.technorati.com/favicon.ico', 'technorati') . ' technorati' => $this->__technorati(), html::image('http://bit.ly/favicon.ico', 'bit.ly') . ' bit.ly' => $this->__bitly());
     $view->tabs = $tabs;
     return $view;
 }
예제 #2
0
 /**
  * Print files.
  * 
  * @param  object $files 
  * @access public
  * @return void
  * @todo fix style.
  */
 public function printFiles($files)
 {
     if (empty($files)) {
         return false;
     }
     $imagesHtml = '';
     $filesHtml = '';
     foreach ($files as $file) {
         if ($file->editor) {
             continue;
         }
         if ($file->isVideo) {
             continue;
         }
         $file->title = $file->title . ".{$file->extension}";
         $fileMD5 = md5_file(rtrim($this->app->getWwwRoot(), '/') . $file->fullURL);
         if ($file->isImage) {
             if ($file->objectType == 'product') {
                 continue;
             }
             $imagesHtml .= "<li class='file-image file-{$file->extension}'>" . html::a(helper::createLink('file', 'download', "fileID={$file->id}&mouse=left"), html::image($file->smallURL), "target='_blank' data-toggle='lightbox' data-img-width='{$file->width}' data-img-height='{$file->height}' title='{$file->title}'") . '</li>';
         } else {
             $filesHtml .= "<li class='file file-{$file->extension}'>";
             $filesHtml .= html::a(helper::createLink('file', 'download', "fileID={$file->id}&mouse=left"), $file->title, "target='_blank' title='{$file->title}'");
             $filesHtml .= "<span class='file-download'><i class='icon-download'></i> " . $file->downloads . "</span>";
             $filesHtml .= "<span class='file-md5'>";
             $filesHtml .= html::a('javascript:void(0)', 'MD5', "class='label' data-toggle='popover' data-placement='bottom' data-content='{$fileMD5}'");
             $filesHtml .= '</span></li>';
         }
     }
     echo "<ul class='files-list clearfix'>" . $imagesHtml . $filesHtml . '</ul>';
 }
예제 #3
0
function bannerForm($name, $path, $config)
{
    if (isset($config["specials.{$name}"]) && file_exists(APPPATH . '../../..' . $path . $config["specials.{$name}"])) {
        echo html::image('..' . $path . $config["specials.{$name}"]) . '<br/>';
    }
    $attributes = array('name' => $name, 'class' => 'banner_upload');
    echo form::upload($attributes, $path);
}
예제 #4
0
파일: main.php 프로젝트: dalinhuang/zotop
 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();
 }
예제 #5
0
 public function action_index()
 {
     if ($user = Arr::get($_GET, 'user') or $user = Arr::get($_GET, 'user_id')) {
         $user_id = $user;
     }
     $gallery_detail = ORM::factory('photo')->where('moderation_status_id', '=', '2')->where('user_id', '=', $user)->with('category')->with('user')->find_all();
     $json = array();
     foreach ($gallery_detail as $key => $photo) {
         $json[] = array('category' => html::anchor('categories/' . $photo->category->id, $photo->category->name), 'share' => html::anchor('#', 'Share this photo'), 'current' => $key + 1, 'total' => $gallery_detail->count(), 'photo' => html::image(Helper_Photos::get($photo, 'medium')), 'display_name' => html::anchor('profile/' . $photo->user->username, $photo->user->display_name), 'name' => $photo->name, 'caption' => $photo->caption, 'tags' => Helper_Tags::print_tags($photo->tags->find_all()));
     }
     $this->resource = $json;
 }
예제 #6
0
파일: snippets.php 프로젝트: xig/SocialFeed
 public function __list()
 {
     $html = "<ul style='list-style:none'>";
     $directory = APPPATH . '/views/snippets/';
     $files = zest::dir_to_array($directory);
     foreach ($files as $file) {
         $filename = str_replace('.zest', '', $file);
         $display_name = ucwords(str_replace('_', ' ', $filename));
         $html .= "<li style='padding-left:45px !important;' class='snippet'><div class='right'>&nbsp;" . html::anchor('admin/snippets/edit/' . $filename, html::image('zest/images/icon_pencil.png')) . "</div><span>" . $display_name . "</span></li>";
         // tidy up: close the handler
     }
     $html .= "</ul>";
     return $html;
 }
예제 #7
0
파일: MY_text.php 프로젝트: anqqa/Anqh
 /**
  * Return text with smileys
  *
  * @param  string  $text
  */
 public static function smileys($text)
 {
     static $smileys;
     // Load smileys
     if (!is_array($smileys)) {
         $smileys = array();
         $config = Kohana::config('site.smiley');
         if (!empty($config)) {
             $url = url::base() . $config['dir'] . '/';
             foreach ($config['smileys'] as $name => $smiley) {
                 $smileys[$name] = html::image(array('src' => $url . $smiley['src'], 'class' => 'smiley'), $name);
             }
         }
     }
     // Smile!
     return empty($smileys) ? $text : str_replace(array_keys($smileys), $smileys, $text);
 }
예제 #8
0
파일: model.php 프로젝트: leowh/colla
 /**
  * Print files.
  * 
  * @param  object $files 
  * @access public
  * @return void
  * @todo fix style.
  */
 public function printFiles($files)
 {
     if (empty($files)) {
         return false;
     }
     $imagesHtml = '';
     $filesHtml = '';
     foreach ($files as $file) {
         $file->title = $file->title . ".{$file->extension}";
         if ($file->isImage) {
             $imagesHtml .= "<li class='file-image file-{$file->extension}'>" . html::a(helper::createLink('file', 'download', "fileID={$file->id}&mouse=left"), html::image($file->smallURL), "target='_blank' data-toggle='lightbox' data-width='{$file->width}' data-height='{$file->height}'") . '</li>';
         } else {
             $filesHtml .= "<li class='file file-{$file->extension}'>" . html::a(helper::createLink('file', 'download', "fileID={$file->id}&mouse=left"), $file->title, "target='_blank'") . '</li>';
         }
     }
     echo "<ul class='article-files clearfix'>" . $imagesHtml . $filesHtml . '</ul>';
 }
예제 #9
0
파일: user.php 프로젝트: dalinhuang/zotop
 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'] = '******' . $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();
 }
예제 #10
0
파일: badge.php 프로젝트: ezioms/RpgEditor
 /**
  * Methode : pour afficher l'img du badge
  */
 public function img($type, $valeur)
 {
     $conf = Kohana::config('users.badge.' . $type);
     $img = 0;
     if ($conf[1] <= $valeur && $conf[2] > $valeur) {
         $img = 1;
     } elseif ($conf[2] <= $valeur && $conf[3] > $valeur) {
         $img = 2;
     } elseif ($conf[3] <= $valeur && $conf[4] > $valeur) {
         $img = 3;
     } elseif ($conf[4] <= $valeur && $conf[5] > $valeur) {
         $img = 4;
     } elseif ($conf[5] <= $valeur && $conf[6] > $valeur) {
         $img = 5;
     } elseif ($conf[6] < $valeur) {
         $img = 6;
     }
     return html::image('images/medal/' . $img . '.png', array('width' => 15));
 }
예제 #11
0
파일: role.php 프로젝트: dalinhuang/zotop
 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();
 }
예제 #12
0
 public function render()
 {
     if (!$this->config['height']) {
         throw new Kohana_User_Exception("Gallery not implemented correctly", "Height has not been set. Please call <code>&#36;banner->set_height({&#36;height})</code>");
     } else {
         if (!$this->config['width']) {
             throw new Kohana_User_Exception("Gallery not implemented correctly", "Width has not been set. Please call <code>&#36;banner->set_width({&#36;width})</code>");
         } else {
             if ($this->config['view']) {
                 return $this->render_to_view($this->config['view']);
             } else {
                 $html = "";
                 if ($this->config['thickbox']) {
                     $x = "thickbox";
                 }
                 $images = $this->get_formatted_image_array();
                 foreach ($images as $name => $filename) {
                     $html .= html::file_anchor('assets/images/' . $filename, html::image('index.php/image/crop/' . $this->config['width'] . "/" . $this->config['height'] . "/" . $filename, array('alt' => $name, 'class' => $this->config['class'])), array('class' => $x, 'title' => $name));
                 }
                 return $html;
             }
         }
     }
 }
예제 #13
0
    if ($category_info[2] != NULL && file_exists(Kohana::config('upload.relative_directory') . '/' . $category_info[2])) {
        $category_image = html::image(array('src' => Kohana::config('upload.relative_directory') . '/' . $category_info[2]));
        $color_css = '';
    }
    echo '<li><a href="#" id="cat_' . $category . '"><span ' . $color_css . '>' . $category_image . '</span><span class="category-title">' . $category_title . '</span></a>';
    // Get Children
    echo '<div class="hide" id="child_' . $category . '">';
    if (sizeof($category_info[3]) != 0) {
        echo '<ul>';
        foreach ($category_info[3] as $child => $child_info) {
            $child_title = $child_info[0];
            $child_color = $child_info[1];
            $child_image = '';
            $color_css = 'class="swatch" style="background-color:#' . $child_color . '"';
            if ($child_info[2] != NULL && file_exists(Kohana::config('upload.relative_directory') . '/' . $child_info[2])) {
                $child_image = html::image(array('src' => Kohana::config('upload.relative_directory') . '/' . $child_info[2]));
                $color_css = '';
            }
            echo '<li style="padding-left:20px;"><a href="#" id="cat_' . $child . '"><span ' . $color_css . '>' . $child_image . '</span><span class="category-title">' . $child_title . '</span></a></li>';
        }
        echo '</ul>';
    }
    echo '</div></li>';
}
?>
			</ul>
			</div>
			<!-- / category filters -->
			
			<?php 
// Action::main_sidebar - Add Items to the Entry Page Sidebar
예제 #14
0
 /**
  * Print files of for a reply.
  * 
  * @param  object $thread 
  * @param  bool   $canManage 
  * @access public
  * @return void
  */
 public function printFiles($reply, $canManage)
 {
     if (empty($reply->files)) {
         return false;
     }
     $imagesHtml = '';
     $filesHtml = '';
     foreach ($reply->files as $file) {
         if ($file->isImage) {
             $imagesHtml .= "<li class='file-image file-{$file->extension}'>" . html::a(helper::createLink('file', 'download', "fileID={$file->id}&mose=left"), html::image($file->fullURL), "target='_blank' data-toggle='lightbox'");
             if ($canManage) {
                 $imagesHtml .= "<span class='file-actions'>" . html::a(helper::createLink('reply', 'deleteFile', "replyID={$reply->id}&fileID={$file->id}"), "<i class='icon-trash'></i>", "class='deleter'") . '</span>';
             }
             $imagesHtml .= '</li>';
         } else {
             $file->title = $file->title . ".{$file->extension}";
             $filesHtml .= "<li class='file file-{$file->extension}'>" . html::a(helper::createLink('file', 'download', "fileID={$file->id}&mouse=left"), $file->title, "target='_blank'");
             if ($canManage) {
                 $filesHtml .= "<span class='file-actions'>" . html::a(helper::createLink('reply', 'deleteFile', "replyID={$reply->id}&fileID={$file->id}"), "<i class='icon-trash'></i>", "class='deleter'") . '</span>';
             }
             $filesHtml .= '</li>';
         }
     }
     echo "<ul class='files-list clearfix'><li class='files-list-heading'>" . $this->lang->reply->files . '</li>' . $imagesHtml . $filesHtml . '</ul>';
 }
예제 #15
0
?>
</div></div>
    <div id='headTitle'>
      <div class="wrapper">
        <?php 
$logoSetting = isset($this->config->site->logo) ? json_decode($this->config->site->logo) : new stdclass();
?>
        <?php 
$logo = isset($logoSetting->{$template}->themes->{$theme}) ? $logoSetting->{$template}->themes->{$theme} : (isset($logoSetting->{$template}->themes->all) ? $logoSetting->{$template}->themes->all : false);
?>
        <?php 
if ($logo) {
    ?>
        <div id='siteLogo'>
          <?php 
    echo html::a($this->config->webRoot, html::image($logo->webPath, "class='logo' title='{$this->config->company->name}'"));
    ?>
        </div>
        <?php 
} else {
    ?>
        <div id='siteName'><h2><?php 
    echo $config->site->name;
    ?>
</h2></div>
        <?php 
}
?>
      </div>
    </div>
    <?php 
<?php

defined('SYSPATH') or die('No direct access allowed.');
?>
<div class="gmap-html">
<span class="image"><?php 
echo html::image(array('src' => $location->link, 'alt' => $location->title, 'width' => 100, 'height' => 100));
?>
</span>
<h6 class="title"><?php 
echo $location->title;
?>
</h6>
<?php 
echo '<p>', implode("</p>\n<p>", explode("\n\n", $location->description)), "</p>\n";
?>
<p class="link"><?php 
echo html::anchor($location->link, $location->title);
?>
</p>
</div>
    ?>
</a>
            </li>
            <?php 
}
?>
          </ul>
        </div>
      </div>
    </div>
    <form method='post' id='ajaxForm' data-checkfingerprint='1'>
      <div id='formError' class='alert alert-danger hiding'></div>
      <div class='row'>
        <div class='col-xs-4 text-center'>
        <?php 
echo html::image($this->config->webRoot . 'theme/default/default/images/main/logo.login.admin.png');
?>
        </div>
        <div class='col-xs-8'>
          <table class="table table-form">
            <tr>
              <th class='w-60px'><?php 
echo $lang->user->account;
?>
</th>
              <td><?php 
echo html::input('account', '', "class='form-control' placeholder='{$lang->user->inputAccountOrEmail}'");
?>
</td>
            </tr>
            <tr>
예제 #18
0
<?php

foreach ($awards as $award) {
    echo html::image($award->images['x55']);
}
예제 #19
0
	<tr><td>Загрузить изображения: </td><td><input type="file" id="multi" name="images[]"></td></tr>
	<tr><td colspan="2">Статус: <input type="checkbox" name="status" value="1" checked="checked"></td></tr>
	<tr><td colspan="2"><input type="submit" name="submit" value=" Сохранить "></td></tr>
</table>

 <?php 
if (!empty($data['images'])) {
    ?>
<a name="img"></a>
            <table width="100%" cellspacing="20">
                <tr>
                <?php 
    foreach ($data['images'] as $i => $image) {
        ?>
                    <td align="center"><?php 
        echo html::anchor('media/products/' . $image->name, html::image('media/products/small_' . $image->name), array('target' => '_blank'));
        ?>
                        <br><?php 
        echo html::anchor('admin/products/delimg/' . $image->id, 'Удалить');
        ?>
 | 
                        <?php 
        if ($image->id != $data['image_id']) {
            ?>
                        <?php 
            echo html::anchor('admin/products/mainimg/' . $image->id, 'Главная');
            ?>
                        <?php 
        } else {
            ?>
                        Главная
예제 #20
0
파일: main.php 프로젝트: rootz/Ushahidi_Web
    if ($category_info[2] != NULL) {
        $category_image = html::image(array('src' => $category_info[2], 'style' => 'float:left;padding-right:5px;'));
        $color_css = '';
    }
    echo '<li><a href="#" id="cat_' . $category . '"><span ' . $color_css . '>' . $category_image . '</span><span class="category-title">' . $category_title . '</span></a>';
    // Get Children
    echo '<div class="hide" id="child_' . $category . '">';
    if (sizeof($category_info[3]) != 0) {
        echo '<ul>';
        foreach ($category_info[3] as $child => $child_info) {
            $child_title = $child_info[0];
            $child_color = $child_info[1];
            $child_image = '';
            $color_css = 'class="swatch" style="background-color:#' . $child_color . '"';
            if ($child_info[2] != NULL) {
                $child_image = html::image(array('src' => $child_info[2], 'style' => 'float:left;padding-right:5px;'));
                $color_css = '';
            }
            echo '<li style="padding-left:10px;"><a href="#" id="cat_' . $child . '"><span ' . $color_css . '>' . $child_image . '</span><span class="category-title">' . $child_title . '</span></a></li>';
        }
        echo '</ul>';
    }
    echo '</div></li>';
}
?>
    			</ul>

			  </div>
			  <!-- / report category filters -->
			  
  			<!-- report type filters -->
예제 #21
0
        <?php 
        }
        ?>
        <strong><?php 
        echo html::a($url, $article->title);
        ?>
</strong>
      </div>
      <div class='item-content'>
        
        <div class='text small text-muted'>
          <div class='media pull-left'>
          <?php 
        if (!empty($article->image)) {
            $title = $article->image->primary->title ? $article->image->primary->title : $article->title;
            echo html::a($url, html::image($article->image->primary->smallURL, "title='{$title}' class='thumbnail'"));
        }
        ?>
          </div>
          <strong class='text-important'>
            <?php 
        if (isset($content->time)) {
            echo "<i class='icon-time'></i> " . formatTime($article->addedDate, DT_DATE4);
        }
        ?>
          </strong> 
          &nbsp;<?php 
        echo $article->summary;
        ?>
        </div>
      </div>
예제 #22
0
</th>
    </tr>          
  </thead>
  <tbody>
    <?php 
foreach ($files as $file) {
    ?>
    <tr class='text-middle'>
      <td><?php 
    echo $file->id;
    ?>
</td>
      <td>
        <?php 
    if ($file->isImage) {
        echo html::a(inlink('download', "id={$file->id}"), html::image($file->smallURL, "class='image-small' title='{$file->title}'"), "target='_blank'");
        if ($file->primary == 1) {
            echo '<small class="label label-success">' . $lang->file->primary . '</small>';
        }
    } else {
        echo html::a(inlink('download', "id={$file->id}"), "{$file->title}.{$file->extension}", "target='_blank'");
    }
    ?>
      </td>
      <td><?php 
    echo $file->extension;
    ?>
</td>
      <td><?php 
    echo $file->size;
    ?>
예제 #23
0
<div class="activity">
	<div class="activity_left">
		<div class="avatar_thumb_container">
			<div class="activity_thumb">
				<?php 
$avatarImg = html::image(Helper_Account::get_avatar($user, "thumb"));
echo html::anchor(Helper_Account::get_public_account_url($user), $avatarImg);
?>
			</div>
		</div>
	</div>
	<div class="activity_right">
		<div class="activity_title"><span class="user"><?php 
echo html::anchor(Helper_Account::get_public_account_url($user), $user->display_name);
?>
</span>
			left a comment on <span class="user"><?php 
echo html::anchor(Helper_Photos::get_photo_url($photo), $photo->user->display_name . "'s");
?>
</span> photo</div>
		<div class="activity_comment"><?php 
echo $comment->comment;
?>
</div>
		<div class="timestamp"><?php 
echo Helper_Game::displayTime(strtotime($activity->time_stamp));
?>
</div>
	</div>
	<div class="clear"></div>
</div>
예제 #24
0
    ?>
</td>
          </tr>
        </thead>
        <?php 
    foreach ($products as $productID => $product) {
        ?>
        <?php 
        $productLink = helper::createLink('product', 'view', "id={$productID}", "category={$product->categories[$product->category]->alias}&name={$product->alias}");
        ?>
        <tr>
          <td class='w-100px'>
            <?php 
        if (!empty($product->image)) {
            $title = $product->image->primary->title ? $product->image->primary->title : $product->name;
            echo html::a($productLink, html::image($product->image->primary->smallURL, "title='{$title}' alt='{$product->name}'"), "class='media-wrapper'");
        }
        ?>
          </td>
          <td class='text-left text-middle'>
            <?php 
        echo html::a($productLink, '<div class="" data-id="' . $product->id . '">' . $product->name . '</div>', "class='media-wrapper'");
        ?>
          </td>
          <td class='w-100px text-middle'> 
            <?php 
        if ($product->promotion != 0) {
            ?>
            <?php 
            $price = $product->promotion;
            ?>
예제 #25
0
    echo $param;
    ?>
'>
    <?php 
    foreach ($themes as $theme) {
        ?>
    <?php 
        $currentRelease = $theme->currentRelease;
        $latestRelease = isset($theme->latestRelease) ? $theme->latestRelease : '';
        ?>
    <div class="col-theme">
      <div class="card theme">
        <div class='media-wrapper theme-img'>
          <?php 
        if (isset($theme->image)) {
            echo html::a('javascript:;', html::image($this->config->ui->themeSnapRoot . $theme->image), "title='{$theme->name}' data-images='http://www.chanzhi.org/data/upload/201512/m_441f9cfde1e0f3fd95528d27848a399d.png, http://www.chanzhi.org/data/upload/201512/m_6d7f3b1d5fd3faa0b415fa8ddec63d10.png' data-width='600' class='preview-theme'");
        }
        ?>
          <div class='theme-info'>
            <span><i class='icon icon-thumbs-o-up'></i> <?php 
        echo $theme->stars;
        ?>
</span> &nbsp; 
            <span><i class='icon icon-download-alt'></i> <?php 
        echo $theme->downloads;
        ?>
</span>
          </div>
        </div>
        <div class="theme-name text-ellipsis">
          <strong>
예제 #26
0
        ?>
    <?php 
        if ($slide->backgroundType == 'image') {
            ?>
    <div data-id='<?php 
            echo $slide->id;
            ?>
' class='<?php 
            echo $itemClass;
            ?>
'<?php 
            echo $url . ' ' . $target;
            ?>
>
    <?php 
            print html::image($slide->image);
            ?>
    <?php 
        } else {
            ?>
    <div data-id='<?php 
            echo $slide->id;
            ?>
' class='<?php 
            echo $itemClass;
            ?>
'<?php 
            echo $url . ' ' . $target;
            ?>
 style='<?php 
            echo 'background-color: ' . $slide->backgroundColor . '; height: ' . $height . 'px';
예제 #27
0
            $category_image = html::image(array('src' => $category_image));
            $color_css = 'class="category-icon"';
        }
        echo '<li>' . '<a href="#" id="cat_' . $category . '" title="' . $category_description . '">' . '<span ' . $color_css . '>' . $category_image . '</span>' . '<span class="category-title">' . $category_title . '</span>' . '</a>';
        // Get Children
        echo '<div class="hide" id="child_' . $category . '">';
        if (sizeof($category_info[3]) != 0) {
            echo '<ul>';
            foreach ($category_info[3] as $child => $child_info) {
                $child_title = html::escape($child_info[0]);
                $child_color = $child_info[1];
                $child_image = $child_info[2] != NULL ? url::convert_uploaded_to_abs($child_info[2]) : NULL;
                $child_description = html::escape(Category_Lang_Model::category_description($child));
                $color_css = 'class="category-icon swatch" style="background-color:#' . $child_color . '"';
                if ($child_info[2] != NULL) {
                    $child_image = html::image(array('src' => $child_image));
                    $color_css = 'class="category-icon"';
                }
                echo '<li>' . '<a href="#" id="cat_' . $child . '" title="' . $child_description . '">' . '<span ' . $color_css . '>' . $child_image . '</span>' . '<span class="category-title">' . $child_title . '</span>' . '</a>' . '</li>';
            }
            echo '</ul>';
        }
        echo '</div></li>';
    }
    ?>
			</ul>
			<?php 
}
?>
			<!-- / category filters -->
예제 #28
0
<?php

$this->header();
?>
<script>
$(function(){
	dialog.setTitle('模块安装');
})
</script>
<?php 
form::header();
?>
<div style="padding:15px;" class="clearfix">
	<div style="float:left;width:100px;text-align:center;padding-top:20px;"><?php 
echo empty($module['icon']) ? '<div class="zotop-icon zotop-icon-module"></div>' : html::image($module['icon'], array('width' => '48px'));
?>
</div>
	<div class="clearfix" style="margin-left:120px;">
		<table class="table">
		<tr><td colspan="2"><b><?php 
echo $module['name'] . ' ( ' . $module['id'] . ' )';
?>
</b><div style="line-height:22px;padding:5px 0px;"><?php 
echo $module['description'];
?>
</div></td></tr>
		<tr><td class="w80">模块版本:</td><td><?php 
echo $module['version'];
?>
</td></tr>
		<tr><td class="w80">模块设计:</td><td><?php 
예제 #29
0
          <?php 
if ($this->device == 'desktop') {
    printf($lang->ui->suitableLogoSize, '50px-80px', '80px-240px');
}
?>
          <?php 
if ($this->device == 'mobile') {
    printf($lang->ui->suitableLogoSize, '<50px', '50px-200px');
}
?>
        </strong>
      </td>
    </tr>
    <tr><td></td><td colspan='2'><?php 
if (isset($logo->webPath)) {
    echo html::image($logo->webPath, "class='logo'");
}
?>
</td></tr>
    <tr>
      <td></td>
      <td colspan='2'>
        <?php 
echo html::submitButton();
?>
      </td>
    </tr>
  </table>
</form>
<?php 
include "footer.html.php";
예제 #30
0
	<?php 
$index = 0;
foreach ($aItems as $item) {
    $index++;
    $photo = ORM::factory("photo", $item->item_id);
    ?>
		
		<div class="photo<?php 
    if ($index % 2 == 0) {
        echo " last";
    }
    ?>
">
			<div class="thumb_container">
				<div class="thumb"><?php 
    echo html::image(Helper_Photos::get($photo, 'medium'), array('alt' => $photo->name));
    ?>
</div>
				<div class="frame"><?php 
    echo html::anchor(Helper_Photos::get_photo_url($photo), $photo->name);
    ?>
</div>
			</div>
			<h2><?php 
    echo html::anchor(Helper_Photos::get_photo_url($photo), $photo->name);
    ?>
</h2>
			<p><?php 
    echo date('F d, Y', strtotime($photo->created));
    ?>
<br />