execute('select',array('table' => 'yxphp_com_1_group','where' => array('id='.$yxphp_url[1].''))); if($temp_str[0]['id']>0){ if(!$yxphp_url[2] || !is_numeric($yxphp_url[2])){ $temp_str_2 = $sql->execute('select',array('table' => 'yxphp_com_1_group','orderby' => array('t_order','asc'),'where' => array('fid='.$temp_str[0]['id'].''),'limit' =>array(1))); }else{ $temp_str_2 = $sql->execute('select',array('table' => 'yxphp_com_1_group','where' => array('id='.$yxphp_url[2].''))); } if($temp_str_2[0]['id']>0){ $temp_title = $temp_str_2[0]['t_name']; }else{ $temp_title = $temp_str[0]['t_name']; } }else{ $temp_title = $webconfig_t_name; } ?>
|
{xingTemplate left}
|
{* 如果有子版块信息才显示数据 否则直接告知没有数据*}
{if count($list_2)>0}
{_ $list = $sql->execute('select',array('select'=>array('id','fid','t_name','t_template'),'table' => 'yxphp_com_1_group','where' => array('id='.$list_2[0]['fid'].''),'limit' =>array(1)))}
{_e $list[0]['t_name']} > {_e $list_2[0]['t_name']}
{* 查询内容数据库内是否存在属于此子版块的信息 如果没有则视为此版块绑定的模板为单页内容 并将其装载显示 *}
{_ $list = $sql->execute('select',array('select'=>array('id','fid','t_imgurl'),'table' => 'yxphp_com_1_neirong','where' => array('fid='.$list_2[0]['id'].''),'limit' =>array(1)))}
{if count($list)>0}
{* 根据t_imgurl的值来判断是文章数据集还是图片数据集 *}
{if $list[0]['t_imgurl']==''}
{xingTemplate group_title_txt}
{else}
{xingTemplate group_title_img}
{/if}
{else}
{_ $temp_group_txt=f_txt(yxphp_md5_template_users.$list_2[0]['t_template'])}
{_ $temp_group_txt_model=f_txt(yxphp_md5_template_users.'group.html')}
{* 简单的容错 防止系统读取group模板脚本直接显示 提示资料整理中 *}
{if $temp_group_txt!=$temp_group_txt_model}
{xingTemplate function_page}
{_e yxpgp_com_data_page(f_zhuanyi($temp_group_txt,1))}
{else}
对不起,当前版块资料正在整理中...
{/if}
当前版块还没有数据
{/if}
|