• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP themeImageUrl函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中themeImageUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP themeImageUrl函数的具体用法?PHP themeImageUrl怎么用?PHP themeImageUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了themeImageUrl函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: get_theme_listOp

 public function get_theme_listOp()
 {
     $result = '';
     $data_count = intval($_GET['data_count']);
     if ($data_count <= 0) {
         $data_count = 2;
     }
     $model = Model();
     $theme_list = $model->table('circle_theme')->field('*, is_recommend*rand()*10000 + has_affix*rand() as rand')->where(array('circle_status' => 1, 'is_closed' => 0))->where(array('has_affix' => 1))->order('rand desc')->limit($data_count)->select();
     if (!empty($theme_list)) {
         $theme_list = array_under_reset($theme_list, 'theme_id');
         $themeid_array = array_keys($theme_list);
         // 附件
         $affix_list = $model->table('circle_affix')->where(array('theme_id' => array('in', $themeid_array), 'affix_type' => 1))->group('theme_id')->select();
         if (!empty($affix_list)) {
             $affix_list = array_under_reset($affix_list, 'theme_id');
         }
         foreach ($theme_list as $key => $val) {
             if (isset($affix_list[$val['theme_id']])) {
                 $theme_list[$key]['affix'] = themeImageUrl($affix_list[$val['theme_id']]['affix_filethumb']);
             }
         }
     }
     if ($this->data_type === 'json') {
         $result = json_encode($theme_list);
     } else {
         Tpl::output('theme_list', $theme_list);
         ob_start();
         Tpl::showpage('api_theme_list', 'null_layout');
         $result = ob_get_clean();
     }
     $this->return_result($result);
 }
开发者ID:mengtaolin,项目名称:shopping,代码行数:33,代码来源:api.php


示例2: indexOp

 /**
  * 首页
  */
 public function indexOp()
 {
     $model = Model();
     // 热门圈子      **显示3个圈子,按推荐随机排列,推荐不够按成员数主题数降序排列**
     $circle_list = $model->table('circle')->field('*, is_hot*rand() as rand')->where(array('circle_status' => 1, 'is_hot' => 1))->order('rand desc')->limit(3)->select();
     if (!empty($circle_list)) {
         $circle_list = array_under_reset($circle_list, 'circle_id');
         $circleid_array = array_keys($circle_list);
         // 查询圈子最新主题
         foreach ($circle_list as $key => $val) {
             // 最新的两条数据
             $theme_list = $model->table('circle_theme')->where(array('circle_id' => $val['circle_id'], 'is_closed' => 0))->order('theme_id desc')->limit(2)->select();
             $circle_list[$key]['theme_list'] = $theme_list;
         }
         Tpl::output('circle_list', $circle_list);
         $now = strtotime(date('Y-m-d', time()));
         // 今天发表的主题
         $nowthemecount_array = $model->table('circle_theme')->field('count(circle_id) as count,circle_id')->group('circle_id')->where(array('theme_addtime' => array('gt', $now), 'circle_id' => array('in', $circleid_array), 'is_closed' => 0))->select();
         if (!empty($nowthemecount_array)) {
             $nowthemecount_array = array_under_reset($nowthemecount_array, 'circle_id');
             Tpl::output('nowthemecount_array', $nowthemecount_array);
         }
         // 今天新加入的成员
         $nowjoincount_array = $model->table('circle_member')->field('count(circle_id) as count,circle_id')->group('circle_id')->where(array('cm_jointime' => array('gt', $now), 'circle_id' => array('in', $circleid_array)))->select();
         if (!empty($nowjoincount_array)) {
             $nowjoincount_array = array_under_reset($nowjoincount_array, 'circle_id');
             Tpl::output('nowjoincount_array', $nowjoincount_array);
         }
     }
     // 圈子分类
     $class_list = $model->table('circle_class')->where(array('class_status' => 1, 'is_recommend' => 1))->order('class_sort asc')->select();
     Tpl::output('class_list', $class_list);
     // 推荐圈子
     $rcircle_list = $model->table('circle')->field('*, is_recommend*rand() as rand')->where(array('circle_status' => 1, 'is_recommend' => 1))->order('rand desc')->limit('20')->select();
     Tpl::output('rcircle_list', $rcircle_list);
     // 推荐话题
     $theme_list = $model->table('circle_theme')->field('*, is_recommend*rand() as rand')->where(array('has_affix' => 1, 'is_closed' => 0, 'is_recommend' => 1))->order('rand desc')->limit(8)->select();
     if (!empty($theme_list)) {
         $theme_list = array_under_reset($theme_list, 'theme_id');
         $themeid_array = array_keys($theme_list);
         // 附件
         $affix_list = $model->table('circle_affix')->where(array('theme_id' => array('in', $themeid_array), 'affix_type' => 1))->group('theme_id')->select();
         if (!empty($affix_list)) {
             $affix_list = array_under_reset($affix_list, 'theme_id');
         }
         foreach ($theme_list as $key => $val) {
             if (isset($affix_list[$val['theme_id']])) {
                 $theme_list[$key]['affix'] = themeImageUrl($affix_list[$val['theme_id']]['affix_filethumb']);
             }
         }
         Tpl::output('theme_list', $theme_list);
     }
     // 商品话题
     $gtheme_list = $model->table('circle_theme')->where(array('has_goods' => 1, 'is_closed' => 0))->order('theme_id desc')->limit(6)->select();
     if (!empty($gtheme_list)) {
         $gtheme_list = array_under_reset($gtheme_list, 'theme_id');
         $themeid_array = array_keys($gtheme_list);
         // 圈子商品
         $thg_list = $model->table('circle_thg')->where(array('theme_id' => array('in', $themeid_array), 'reply_id' => 0))->select();
         $thg_list = tidyThemeGoods($thg_list, 'theme_id', 2);
         Tpl::output('thg_list', $thg_list);
         Tpl::output('gtheme_list', $gtheme_list);
     }
     // 优秀成员
     $member_list = $model->table('circle_member')->field('*, is_recommend*rand() as rand')->where(array('is_recommend' => 1))->order('rand desc')->limit(5)->select();
     if (!empty($member_list)) {
         $member_list = array_reverse($member_list);
         $one_member = array_pop($member_list);
         $where = array();
         $where['member_id'] = $one_member['member_id'];
         $where['circle_id'] = $one_member['circle_id'];
         $one_membertheme = $model->table('circle_theme')->where($where)->order('theme_id desc')->limit(4)->select();
         Tpl::output('one_member', $one_member);
         Tpl::output('one_membertheme', $one_membertheme);
         if (!empty($member_list)) {
             $where = '';
             foreach ($member_list as $val) {
                 $where .= '( circle_member.member_id = ' . $val['member_id'] . ' and circle_member.circle_id = ' . $val['circle_id'] . ') or ';
             }
             $where = rtrim($where, 'or ');
             $more_membertheme = $model->table('circle_member,circle_theme')->join('inner')->on('circle_member.member_id = circle_theme.member_id and circle_member.circle_id = circle_theme.circle_id')->where($where)->group('circle_member.member_id,circle_member.circle_id')->select();
             Tpl::output('more_membertheme', $more_membertheme);
         }
     }
     // 最新话题/热门话题/人气回复
     $this->themeTop();
     // 首页幻灯
     $loginpic = unserialize(C('circle_loginpic'));
     Tpl::output('loginpic', $loginpic);
     $this->circleSEO();
     Tpl::showpage('index');
 }
开发者ID:dotku,项目名称:shopnc_cnnewyork,代码行数:95,代码来源:index.php


示例3: foreach

              <h4><i></i><?php 
                echo $lang['nc_relevance_adjunct'];
                ?>
</h4>
              <ul>
                <?php 
                foreach ($output['reply_affix'][$val['reply_id']] as $val) {
                    ?>
                <li> <a href="<?php 
                    echo themeImageUrl($val['affix_filename']);
                    ?>
" class="nyroModal" rel="gal" title="<?php 
                    echo $lang['circle_reply_image_title_one'] . $val['reply_id'] . $lang['circle_reply_image_title_two'];
                    ?>
"><img src="<?php 
                    echo themeImageUrl($val['affix_filethumb']);
                    ?>
"/></a> </li>
                <?php 
                }
                ?>
              </ul>
            </dd>
            <?php 
            }
            ?>
            <?php 
            if (!empty($output['reply_goods'][$val['reply_id']])) {
                ?>
            <dd class="reply-goods clearfix">
              <h4><i></i><?php 
开发者ID:Maplecms,项目名称:shopnc-yhmall,代码行数:31,代码来源:theme.detail.php


示例4: showMiniEditor


//.........这里部分代码省略.........
						<input name=\"content\" type=\"text\" class=\"text w180\" />
						<label>".L('nc_link_address')."</label>
						<input name=\"url\" type=\"text\" class=\"text w180\" placeholder=\"http://\" />
						<input name=\"".L('nc_submit')."\" type=\"submit\" class=\"button\" value=\"".L('nc_submit')."\"/>
					</div>
				</a>";
	$_flash	= "<a href=\"javascript:void(0);\" nctype=\"flase\" title=\"".L('nc_video_address')."\" class=\"mr5 flash-handle\"><i class=\"flash\"></i>".L('nc_video')."
					<div class=\"ubb-layer flash-layer\" style=\"display: none;\">
						<div class=\"arrow\"></div>
						<label>".L('nc_video_address')."</label>
						<input name=\"flash\" type=\"text\" class=\"text w180\" placeholder=\"http://\" />
						<input name=\"".L('nc_submit')."\" type=\"submit\" class=\"button\" value=\"".L('nc_submit')."\"/>
					</div>
				</a>";
	$_image	= "<a href=\"javascript:void(0);\" nctype=\"uploadImage\" title=\"".L('nc_insert_network_image')."\" class=\"mr5\"><i class=\"url-img\"></i>".L('nc_image')."</a>";
	$_goods	= "<a href=\"javascript:void(0);\" nctype=\"chooseGoods\" title=\"".L('nc_insert_relevance_goods')."\"><i class=\"url-goods\"></i>".L('nc_goods')."</a>";
	$_smilier	= "<a href=\"javascript:void(0);\" nctype=\"smilier\" title=\"".L('nc_insert_smilier')."\" class=\"smilier-handle\"><i class=\"smilier\"></i>".L('nc_smilier')."
						<div class=\"ubb-layer smilier-layer\">
							<div class=\"arrow\"></div>
							<span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/adore.png\" data-param=\"adore\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/after_boom.png\" data-param=\"after_boom\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/ah.png\" data-param=\"ah\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/amazing.png\" data-param=\"amazing\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/anger.png\" data-param=\"anger\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/angry.png\" data-param=\"angry\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/baffle.png\" data-param=\"baffle\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/batman.png\" data-param=\"batman\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/beat_brick.png\" data-param=\"beat_brick\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/bigsmile.png\" data-param=\"bigsmile\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/bye_bye.png\" data-param=\"bye_bye\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/confuse.png\" data-param=\"confuse\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/cool.png\" data-param=\"cool\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/crazy.png\" data-param=\"crazy\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/crazy_rabbit.png\" data-param=\"crazy_rabbit\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/cry.png\" data-param=\"cry\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/dead.png\" data-param=\"dead\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/devil.png\" data-param=\"devil\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/diver.png\" data-param=\"diver\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/doubt.png\" data-param=\"doubt\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/evilgrin.png\" data-param=\"evilgrin\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/exciting.png\" data-param=\"exciting\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/flower_dead.png\" data-param=\"flower_dead\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/go.png\" data-param=\"go\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/greedy.png\" data-param=\"greedy\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/haha.png\" data-param=\"haha\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/hand_flower.png\" data-param=\"hand_flower\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/happy.png\" data-param=\"happy\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/horror.png\" data-param=\"horror\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/hypnotized.png\" data-param=\"hypnotized\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/kiss.png\" data-param=\"kiss\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/love.png\" data-param=\"love\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/mad.png\" data-param=\"mad\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/matrix.png\" data-param=\"matrix\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/misdoubt.png\" data-param=\"misdoubt\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/money.png\" data-param=\"money\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/nerd.png\" data-param=\"nerd\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/ninja.png\" data-param=\"ninja\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/nosebleed.png\" data-param=\"nosebleed\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/pirate.png\" data-param=\"pirate\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/question.png\" data-param=\"question\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/sad.png\" data-param=\"sad\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/shame.png\" data-param=\"shame\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/shocked.png\" data-param=\"shame\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/silent.png\" data-param=\"silent\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/sleep.png\" data-param=\"sleep\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/sweat.png\" data-param=\"sweat\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/star.png\" data-param=\"star\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/whist.png\" data-param=\"whist\"></span> <span><img src=\"".CIRCLE_TEMPLATES_URL."/images/smilier/surrender.png\" data-param=\"surrender\"></span>
						</div>
					</a>";
	$_highReply= "<a href=\"javascript:void(0);\" nctype=\"highReply\" class=\"high-reply\"><i class=\"high\"></i>".L('nc_advanced_reply')."</a>";
	
	// Spell the editor contents
	$__content = '';
	$__content .= "<div class=\"content\">
			<div class=\"ubb-bar\">";
	foreach ($items as $val){
		$val = '_'.$val;
		$__content .= $$val;
	}
	$__content .= "</div>
			<div class=\"textarea\">
				<textarea id=\"".$cname."\" name=\"".$cname."\">".$content."</textarea>
			</div>
			<div class=\"smilier\"></div>
		</div>";
	
	
	// The attachment part
	$__affix = '';
	$__affix .= "<div class=\"affix\">
	          <h3><i></i>".L('nc_relevance_adjunct')."</h3>
	          <div class=\"help\" nctype=\"affix\" ".(empty($affix)?"":"style=\"display: none;\"").">
	            <p>".L('nc_relevance_adjunct_help_one')."</p>
	            <p>".L('nc_relevance_adjunct_help_two')."</p>
	          </div>
	          <div id=\"scrollbar\">
	          <ul>";
	if(!empty($affix)){
		foreach($affix as $val){
			$__affix .=  "<li>
	              <p><img src=\"".themeImageUrl($val['affix_filethumb'])."\"> </p>
	              <div class=\"handle\"> <a data-param=\"".themeImageUrl($val['affix_filename'])."\" nctype=\"affix_insert\" href=\"javascript:void(0);\"><i class=\"c\"></i>".L('nc_insert')."</a> <a data-param=\"".$val['affix_id']."\" nctype=\"affix_delete\" href=\"javascript:void(0);\"><i class=\"d\"></i>".L('nc_delete')."</a> </div>
	            </li>";
		}
	}
	$__affix .= "</ul>
	          </div>
	        </div>";
	
	$__maffix = str_replace("nctype=\"affix_delete\"", "nctype=\"maffix_delete\"", $__affix);
	
	// After insert part of goods
	$__goods = '';
	$__goods .= "<div class=\"insert-goods\" ".(empty($goods)?"style=\"display:none;\"":"").">
	          <h3><i></i>".L('nc_select_insert_goods,nc_colon')."</h3>";
	if(!empty($goods)){
		foreach($goods as $val){
	    	$__goods .= "<dl>
	            <dt class=\"goods-name\">".$val['goods_name']."</dt>
	            <dd class=\"goods-pic\"><a href=\"javascript:void(0);\"><img src=\"".$val['image']."\"></a></dd>
	            <dd class=\"goods-price\"><em>".$val['goods_price']."</em></dd>
	            <dd class=\"goods-del\">".L('nc_delete')."</dd>
	            <input type=\"hidden\" value=\"".$val['goods_id']."\" name=\"".$gname."[".$val['themegoods_id']."][id]\">
	            <input type=\"hidden\" value=\"".$val['goods_name']."\" name=\"".$gname."[".$val['themegoods_id']."][name]\">
	            <input type=\"hidden\" value=\"".$val['goods_price']."\" name=\"".$gname."[".$val['themegoods_id']."][price]\">
	            <input type=\"hidden\" value=\"".$val['goods_image']."\" name=\"".$gname."[".$val['themegoods_id']."][image]\">
	            <input type=\"hidden\" value=\"".$val['store_id']."\" name=\"".$gname."[".$val['themegoods_id']."][storeid]\">
	            <input type=\"hidden\" value=\"".$val['thg_type']."\" name=\"".$gname."[".$val['themegoods_id']."][type]\">
	            <input type=\"hidden\" value=\"".$val['thg_url']."\" name=\"".$gname."[".$val['themegoods_id']."][uri]\">
	          </dl>";
		}
	}
	$__goods .= "</div>";
	
	// Part read permissions
	$__readperm = '';
	if(!empty($readperm)){
		$__readperm .= "<div class=\"readperm\"><span>".L('nc_read_perm,nc_colon')."</span><span><select name=\"readperm\">";
		foreach($readperm as $key=>$val){
			$__readperm .= "<option value=\"".$key."\" ".(($rpvalue == $key)?"selected=\"selected\"":"").">".$val."&nbsp;lv".$key."</option>";
		}
		$__readperm .= "</select></span></div>";
	}
	
	eval('$return = '.$return.';');
	return $return;
}
开发者ID:noikiy,项目名称:ejia,代码行数:101,代码来源:function.php


示例5: unused_imgOp

 /**
  * 获得未使用附件
  */
 public function unused_imgOp()
 {
     $affix_list = Model()->table('circle_affix')->field('affix_id,affix_filename,affix_filethumb')->where(array('member_id' => $_SESSION['member_id'], 'affix_type' => 1, 'theme_id' => 0))->select();
     if (!empty($affix_list)) {
         $affix_array = array();
         foreach ($affix_list as $key => $val) {
             $affix_array[$key]['file_id'] = $val['affix_id'];
             $affix_array[$key]['file_url'] = themeImageUrl($val['affix_filethumb']);
             $affix_array[$key]['file_insert'] = themeImageUrl($val['affix_filename']);
         }
     }
     echo json_encode($affix_array);
 }
开发者ID:mengtaolin,项目名称:shopping,代码行数:16,代码来源:theme.php


示例6: showMiniEditor

/**
 * The editor
 * 
 * @param string $cname		The content of the editor 'id' and the 'name' of the name
 * @param string $content	The editor content
 * @param string $type		The toolbar type
 * @param array  $affix		The affix content
 * @param string $gname		The name of the goods content
 * @param array  $goods		The goods content
 * @param array  $readperm	Optional permissions array
 * @param int    $rpvalue	Has chosen the permissions
 */
function showMiniEditor($cname, $content = '', $type = 'all', $affix = array(), $gname = '', $goods = array(), $readperm = array(), $rpvalue = 0)
{
    switch ($type) {
        case 'manage':
            $items = array('font', 'size', 'line', 'bold', 'italic', 'underline', 'color', 'line', 'url', 'flash', 'image', 'line', 'smilier');
            $return = '$__content.$__maffix.$__goods.$__readperm';
            break;
        case 'quickReply':
            $items = array('font', 'size', 'line', 'bold', 'italic', 'underline', 'color', 'line', 'url', 'flash', 'line', 'smilier');
            $return = '$__content';
            break;
        case 'hQuickReply':
            $items = array('font', 'size', 'line', 'bold', 'italic', 'underline', 'color', 'line', 'url', 'flash', 'line', 'smilier', 'highReply');
            $return = '$__content';
            break;
        default:
            $items = array('font', 'size', 'line', 'bold', 'italic', 'underline', 'color', 'line', 'affix', 'line', 'url', 'flash', 'image', 'goods', 'line', 'smilier');
            $return = '$__content.$__affix.$__goods.$__readperm';
            break;
    }
    // toolbar items
    $_line = "<span class=\"line\"></span>";
    $_font = "<a href=\"javascript:void(0);\" nctype=\"font-family\" class=\"font-family\">" . L('nc_font') . "\r\n\t\t\t\t\t<div class=\"ubb-layer font-family-layer\">\r\n\t\t\t\t\t\t<div class=\"arrow\"></div>\r\n\t\t\t\t\t\t<span class=\"ff01\" data-param=\"Microsoft YaHei\">" . L('nc_Microsoft_YaHei') . "</span><span class=\"ff02\" data-param=\"simsun\">" . L('nc_simsun') . "</span><span class=\"ff03\" data-param=\"simhei\">" . L('nc_simhei') . "</span><span class=\"ff04\" data-param=\"Arial\">Arial</span><span class=\"ff05\" data-param=\"Verdana\">Verdana</span><span class=\"ff06\" data-param=\"Helvetica\">Helvetica</span><span class=\"ff07\" data-param=\"Tahoma\">Tahoma</span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>";
    $_size = "<a href=\"javascript:void(0);\" nctype=\"font-size\" class=\"font-size\">" . L('nc_font_size') . "\r\n\t\t\t\t\t<div class=\"ubb-layer font-size-layer\">\r\n\t\t\t\t\t\t<div class=\"arrow\"></div>\r\n\t\t\t\t\t\t<span class=\"s12\">12px</span><span class=\"s14\">14px</span><span class=\"s16\">16px</span><span class=\"s18\">18px</span><span class=\"s20\">20px</span><span class=\"s22\">22px</span><span class=\"s24\">24px</span>\r\n\t\t\t\t\t</div>\r\n\t            </a>";
    $_bold = "<a href=\"javascript:void(0);\" nctype=\"b\" title=\"" . L('nc_font_bold') . "\"><i class=\"font-b\"></i></a>";
    $_italic = "<a href=\"javascript:void(0);\" nctype=\"i\" title=\"" . L('nc_font_italic') . "\"><i class=\"font-i\"></i></a>";
    $_underline = "<a href=\"javascript:void(0);\" nctype=\"u\" title=\"" . L('nc_font_underline') . "\"><i class=\"font-u\"></i></a>";
    $_color = "<a href=\"javascript:void(0);\" nctype=\"color\" title=\"" . L('nc_font_color') . "\" class=\"font-color-handle\"><i class=\"font-color\"></i>\r\n\t\t\t\t\t<div class=\"ubb-layer font-color-layer\">\r\n\t\t\t\t\t\t<div class=\"arrow\"></div>\r\n\t\t\t\t\t\t<span class=\"c-000000\"></span><span class=\"c-A0522D\"></span><span class=\"c-556B2F\"></span><span class=\"c-006400\"></span><span class=\"c-483D8B\"></span><span class=\"c-000080\"></span><span class=\"c-4B0082\"></span><span class=\"c-2F4F4F\"></span> <span class=\"c-8B0000\"></span><span class=\"c-FF8C00\"></span><span class=\"c-808000\"></span><span class=\"c-008000\"></span><span class=\"c-008080\"></span><span class=\"c-0000FF\"></span><span class=\"c-708090\"></span><span class=\"c-696969\"></span><span class=\"c-FF0000\"></span><span class=\"c-F4A460\"></span><span class=\"c-9ACD32\"></span><span class=\"c-2E8B57\"></span><span class=\"c-48D1CC\"></span><span class=\"c-4169E1\"></span><span class=\"c-800080\"></span><span class=\"c-808080\"></span><span class=\"c-FF00FF\"></span><span class=\"c-FFA500\"></span><span class=\"c-FFFF00\"></span><span class=\"c-00FF00\"></span><span class=\"c-00FFFF\"></span><span class=\"c-00BFFF\"></span><span class=\"c-9932CC\"></span><span class=\"c-C0C0C0\"></span><span class=\"c-FFC0CB\"></span><span class=\"c-F5DEB3\"></span><span class=\"c-FFFACD\"></span><span class=\"c-98FB98\"></span><span class=\"c-AFEEEE\"></span><span class=\"c-ADD8E6\"></span><span class=\"c-DDA0DD\"></span>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>";
    $_affix = "<div class=\"upload-btn\" title=\"" . L('nc_upload_image_affix') . "\">\r\n\t\t\t\t\t<span><i class=\"upload-img\"></i>\r\n\t\t\t\t\t\t<div class=\"upload-button\">" . L('nc_upload_affix') . "</div>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<input type=\"file\" name=\"test_file\" id=\"test_file\" multiple=\"multiple\"  file_id=\"0\" class=\"upload-file\" size=\"1\" hidefocus=\"true\" maxlength=\"0\" style=\"cursor: pointer;\" />\r\n\t\t\t\t\t<input id=\"submit_button\" style=\"display:none\" type=\"button\" value=\"&nbsp;\" onClick=\"submit_form(\$(this))\" />\r\n\t\t\t\t</div>";
    $_url = "<a href=\"javascript:void(0);\" nctype=\"url\" title=\"" . L('nc_insert_link_address') . "\" class=\"mr5 url-handle\"><i class=\"url\"></i>" . L('nc_line') . "\r\n\t\t\t\t\t<div class=\"ubb-layer url-layer\" style=\"display: none;\">\r\n\t\t\t\t\t\t<div class=\"arrow\"></div>\r\n\t\t\t\t\t\t<label>" . L('nc_link_content') . "</label>\r\n\t\t\t\t\t\t<input name=\"content\" type=\"text\" class=\"text w180\" />\r\n\t\t\t\t\t\t<label>" . L('nc_link_address') . "</label>\r\n\t\t\t\t\t\t<input name=\"url\" type=\"text\" class=\"text w180\" placeholder=\"http://\" />\r\n\t\t\t\t\t\t<input name=\"" . L('nc_submit') . "\" type=\"submit\" class=\"button\" value=\"" . L('nc_submit') . "\"/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>";
    $_flash = "<a href=\"javascript:void(0);\" nctype=\"flase\" title=\"" . L('nc_video_address') . "\" class=\"mr5 flash-handle\"><i class=\"flash\"></i>" . L('nc_video') . "\r\n\t\t\t\t\t<div class=\"ubb-layer flash-layer\" style=\"display: none;\">\r\n\t\t\t\t\t\t<div class=\"arrow\"></div>\r\n\t\t\t\t\t\t<label>" . L('nc_video_address') . "</label>\r\n\t\t\t\t\t\t<input name=\"flash\" type=\"text\" class=\"text w180\" placeholder=\"http://\" />\r\n\t\t\t\t\t\t<input name=\"" . L('nc_submit') . "\" type=\"submit\" class=\"button\" value=\"" . L('nc_submit') . "\"/>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</a>";
    $_image = "<a href=\"javascript:void(0);\" nctype=\"uploadImage\" title=\"" . L('nc_insert_network_image') . "\" class=\"mr5\"><i class=\"url-img\"></i>" . L('nc_image') . "</a>";
    $_smilier = "<a href=\"javascript:void(0);\" nctype=\"smilier\" title=\"" . L('nc_insert_smilier') . "\" class=\"smilier-handle\"><i class=\"smilier\"></i>" . L('nc_smilier') . "\r\n\t\t\t\t\t\t<div class=\"ubb-layer smilier-layer\">\r\n\t\t\t\t\t\t\t<div class=\"arrow\"></div>\r\n\t\t\t\t\t\t\t<span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_aini.png\" data-param=\"d_aini\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_baibai.png\" data-param=\"d_baibai\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_beishang.png\" data-param=\"d_beishang\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_bishi.png\" data-param=\"d_bishi\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_bizui.png\" data-param=\"d_bizui\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_chanzui.png\" data-param=\"d_chanzui\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_chijing.png\" data-param=\"d_chijing\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_dahaqi.png\" data-param=\"d_dahaqi\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_dalian.png\" data-param=\"d_dalian\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_ding.png\" data-param=\"d_ding\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_ganmao.png\" data-param=\"d_ganmao\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_guzhang.png\" data-param=\"d_guzhang\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_haha.png\" data-param=\"d_haha\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_haixiu.png\" data-param=\"d_haixiu\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_han.png\" data-param=\"d_han\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_hehe.png\" data-param=\"d_hehe\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_heixian.png\" data-param=\"d_heixian\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_heng.png\" data-param=\"d_heng\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_huaxin.png\" data-param=\"d_huaxin\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_jiyan.png\" data-param=\"d_jiyan\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_keai.png\" data-param=\"d_keai\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_kelian.png\" data-param=\"d_kelian\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_ku.png\" data-param=\"d_ku\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_kun.png\" data-param=\"d_kun\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_landelini.png\" data-param=\"d_landelini\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_lei.png\" data-param=\"d_lei\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_nu.png\" data-param=\"d_nu\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_numa.png\" data-param=\"d_numa\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_qian.png\" data-param=\"d_qian\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_qinqin.png\" data-param=\"d_qinqin\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_shayan.png\" data-param=\"d_shayan\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_shengbing.png\" data-param=\"d_shengbing\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_shiwang.png\" data-param=\"d_shiwang\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_shuai.png\" data-param=\"d_shuai\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_shuijiao.png\" data-param=\"d_shuijiao\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_sikao.png\" data-param=\"d_sikao\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_taikaixin.png\" data-param=\"d_taikaixin\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_touxiao.png\" data-param=\"d_touxiao\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_tu.png\" data-param=\"d_tu\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_wabishi.png\" data-param=\"d_wabishi\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_weiqu.png\" data-param=\"d_weiqu\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_xiaoku.png\" data-param=\"d_xiaoku\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_xixi.png\" data-param=\"d_xixi\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_xu.png\" data-param=\"d_xu\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_yinxian.png\" data-param=\"d_yinxian\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_yiwen.png\" data-param=\"d_yiwen\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_youhengheng.png\" data-param=\"d_youhengheng\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_yun.png\" data-param=\"d_yun\"></span><span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_zhuakuang.png\" data-param=\"d_zhuakuang\"></span> <span><img src=\"" . CIRCLE_TEMPLATES_URL . "/images/smilier/d_zuohengheng.png\" data-param=\"d_zuohengheng\"></span>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</a>";
    $_highReply = "<a href=\"javascript:void(0);\" nctype=\"highReply\" class=\"high-reply\"><i class=\"high\"></i>" . L('nc_advanced_reply') . "</a>";
    // Spell the editor contents
    $__content = '';
    $__content .= "<div class=\"content\">\r\n\t\t\t<div class=\"ubb-bar\">";
    foreach ($items as $val) {
        $val = '_' . $val;
        $__content .= ${$val};
    }
    $__content .= "</div>\r\n\t\t\t<div class=\"textarea\">\r\n\t\t\t\t<textarea id=\"" . $cname . "\" name=\"" . $cname . "\">" . $content . "</textarea>\r\n\t\t\t</div>\r\n\t\t\t<div class=\"smilier\"></div>\r\n\t\t</div>";
    // The attachment part
    $__affix = '';
    $__affix .= "<div class=\"affix\">\r\n\t          <h3><i></i>" . L('nc_relevance_adjunct') . "</h3>\r\n\t          <div class=\"help\" nctype=\"affix\" " . (empty($affix) ? "" : "style=\"display: none;\"") . ">\r\n\t            <p>" . L('nc_relevance_adjunct_help_one') . "</p>\r\n\t            <p>" . L('nc_relevance_adjunct_help_two') . "</p>\r\n\t          </div>\r\n\t          <div id=\"scrollbar\">\r\n\t          <ul>";
    if (!empty($affix)) {
        foreach ($affix as $val) {
            $__affix .= "<li>\r\n\t              <p><img src=\"" . themeImageUrl($val['affix_filethumb']) . "\"> </p>\r\n\t              <div class=\"handle\"> <a data-param=\"" . themeImageUrl($val['affix_filename']) . "\" nctype=\"affix_insert\" href=\"javascript:void(0);\"><i class=\"c\"></i>" . L('nc_insert') . "</a> <a data-param=\"" . $val['affix_id'] . "\" nctype=\"affix_delete\" href=\"javascript:void(0);\"><i class=\"d\"></i>" . L('nc_delete') . "</a> </div>\r\n\t            </li>";
        }
    }
    $__affix .= "</ul>\r\n\t          </div>\r\n\t        </div>";
    $__maffix = str_replace("nctype=\"affix_delete\"", "nctype=\"maffix_delete\"", $__affix);
    // After insert part of goods
    $__goods = '';
    $__goods .= "<div class=\"insert-goods\" " . (empty($goods) ? "style=\"display:none;\"" : "") . ">\r\n\t          <h3><i></i>" . L('nc_select_insert_goods,nc_colon') . "</h3>";
    if (!empty($goods)) {
        foreach ($goods as $val) {
            $__goods .= "<dl>\r\n\t            <dt class=\"goods-name\">" . $val['goods_name'] . "</dt>\r\n\t            <dd class=\"goods-pic\"><a href=\"javascript:void(0);\"><img src=\"" . $val['image'] . "\"></a></dd>\r\n\t            <dd class=\"goods-price\"><em>" . $val['goods_price'] . "</em></dd>\r\n\t            <dd class=\"goods-del\">" . L('nc_delete') . "</dd>\r\n\t            <input type=\"hidden\" value=\"" . $val['goods_id'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][id]\">\r\n\t            <input type=\"hidden\" value=\"" . $val['goods_name'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][name]\">\r\n\t            <input type=\"hidden\" value=\"" . $val['goods_price'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][price]\">\r\n\t            <input type=\"hidden\" value=\"" . $val['goods_image'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][image]\">\r\n\t            <input type=\"hidden\" value=\"" . $val['store_id'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][storeid]\">\r\n\t            <input type=\"hidden\" value=\"" . $val['thg_type'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][type]\">\r\n\t            <input type=\"hidden\" value=\"" . $val['thg_url'] . "\" name=\"" . $gname . "[" . $val['themegoods_id'] . "][uri]\">\r\n\t          </dl>";
        }
    }
    $__goods .= "</div>";
    // Part read permissions
    $__readperm = '';
    if (!empty($readperm)) {
        $__readperm .= "<div class=\"readperm\"><span>" . L('nc_read_perm,nc_colon') . "</span><span><select name=\"readperm\">";
        foreach ($readperm as $key => $val) {
            $__readperm .= "<option value=\"" . $key . "\" " . ($rpvalue == $key ? "selected=\"selected\"" : "") . ">" . $val . "&nbsp;lv" . $key . "</option>";
        }
        $__readperm .= "</select></span></div>";
    }
    eval('$return = ' . $return . ';');
    return $return;
}
开发者ID:Maplecms,项目名称:shopnc-api,代码行数:85,代码来源:function.php


示例7: theme_listOp

 /**
  * 话题列表
  */
 public function theme_listOp()
 {
     $model = Model();
     if (chksubmit()) {
         if (!empty($_POST['check_theme_id']) && is_array($_POST['check_theme_id'])) {
             foreach ($_POST['check_theme_id'] as $t_id) {
                 $theme_info = $model->table('circle_theme')->where(array('theme_id' => $t_id))->find();
                 if (empty($theme_info)) {
                     continue;
                 }
                 // 删除附件
                 $affix_list = $model->table('circle_affix')->where(array('theme_id' => $t_id))->select();
                 if (!empty($affix_list)) {
                     foreach ($affix_list as $val) {
                         @unlink(themeImagePath($val['affix_filename']));
                         @unlink(themeImagePath($val['affix_filethumb']));
                     }
                     $model->table('circle_affix')->where(array('theme_id' => $t_id))->delete();
                 }
                 // 删除商品
                 $model->table('circle_thg')->where(array('theme_id' => $t_id))->delete();
                 // 删除赞表相关
                 $model->table('circle_like')->where(array('theme_id' => $t_id))->delete();
                 // 删除回复
                 $model->table('circle_threply')->where(array('theme_id' => $t_id))->delete();
                 // 更新圈子主题数量
                 $model->table('circle')->update(array('circle_id' => $theme_info['circle_id'], 'circle_thcount' => array('exp', 'circle_thcount-1')));
                 // The recycle bin add delete records
                 $param = array();
                 $param['theme_id'] = $t_id;
                 $param['op_id'] = 0;
                 $param['op_name'] = L('cirlce_administrator');
                 $param['type'] = 'admintheme';
                 Model('circle_recycle')->saveRecycle($param, $theme_info);
                 // 删除话题
                 $model->table('circle_theme')->delete($t_id);
                 // Experience
                 if (intval($theme_info['theme_exp']) > 0) {
                     $param = array();
                     $param['member_id'] = $theme_info['member_id'];
                     $param['member_name'] = $theme_info['member_name'];
                     $param['circle_id'] = $theme_info['circle_id'];
                     $param['itemid'] = $t_id;
                     $param['type'] = 'delRelease';
                     $param['exp'] = $theme_info['theme_exp'];
                     Model('circle_exp')->saveExp($param);
                 }
             }
         }
         showMessage(L('nc_common_op_succ'), 'index.php?act=circle_theme&op=theme_list');
     }
     $where = array();
     if ($_GET['searchname'] != '') {
         $where['theme_name'] = array('like', '%' . $_GET['searchname'] . '%');
     }
     if ($_GET['classname'] != '') {
         $where['circle_name'] = array('like', '%' . $_GET['classname'] . '%');
     }
     if ($_GET['searchtop'] != '' && in_array($_GET['searchtop'], array(0, 1))) {
         $where['is_stick'] = intval($_GET['searchtop']);
     }
     if ($_GET['searchcream'] != '' && in_array($_GET['searchcream'], array(0, 1))) {
         $where['is_digest'] = intval($_GET['searchcream']);
     }
     if ($_GET['searchrecommend'] != '' && in_array($_GET['searchrecommend'], array(0, 1))) {
         $where['is_recommend'] = intval($_GET['searchrecommend']);
     }
     $theme_list = $model->table('circle_theme')->where($where)->order('theme_id desc')->page(10)->select();
     if (!empty($theme_list)) {
         $theme_list = array_under_reset($theme_list, 'theme_id');
         $themeid_array = array_keys($theme_list);
         // 附件
         $affix_list = $model->table('circle_affix')->where(array('theme_id' => array('in', $themeid_array), 'affix_type' => 1))->group('theme_id')->select();
         if (!empty($affix_list)) {
             $affix_list = array_under_reset($affix_list, 'theme_id');
         }
         foreach ($theme_list as $key => $val) {
             if (isset($affix_list[$val['theme_id']])) {
                 $theme_list[$key]['affix'] = themeImageUrl($affix_list[$val['theme_id']]['affix_filethumb']);
             }
         }
     }
     Tpl::output('theme_list', $theme_list);
     Tpl::output('page', $model->showpage(2));
     Tpl::showpage('circle_theme.list');
 }
开发者ID:noikiy,项目名称:haifenbao,代码行数:89,代码来源:circle_theme.php


示例8: traceContent

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP themePage函数代码示例发布时间:2022-05-23
下一篇:
PHP themeImagePath函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap