@@ -72,7 +72,7 @@ a{text-decoration:none!important} | |||
</head> | |||
<body class="bg"> | |||
<div id="floater" class="napisdiv"> | |||
<a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src="../../static/web/img/picviewnone.gif" id="picview" alt="关闭预览"></a> | |||
<a href="javascript:nullLink();" onClick="document.getElementById('floater').style.display='none';"><img src="../../static/web/img/picviewnone.gif" id="picview" title="关闭预览"></a> | |||
</div> | |||
<script src="../js/float.js"></script> | |||
<script> | |||
@@ -64,7 +64,7 @@ function GetMenus($userrank, $topos = 'main') | |||
} | |||
$link = "<div class='items'> | |||
<div class='fllct'>$link</div> | |||
<div class='flrct'><a href='".$ctag2->GetAtt('linkadd')."' target='".$ctag2->GetAtt('target')."'><i class='fa $addico' alt='$addalt' title='$addalt'></i></a></div> | |||
<div class='flrct'><a href='".$ctag2->GetAtt('linkadd')."' target='".$ctag2->GetAtt('target')."'><i class='fa $addico' title='$addalt'></i></a></div> | |||
</div>"; | |||
} else { | |||
$link .= ""; | |||
@@ -56,7 +56,7 @@ $dlist->Display(); | |||
function MediaType($tid, $nurl) | |||
{ | |||
if ($tid == 1) { | |||
return "图片<a href=\"$nurl\" target=\"_blank\"><i class='fa fa-picture-o' name='picview' alt='预览'></i></a>"; | |||
return "图片<a href=\"$nurl\" target=\"_blank\"><i class='fa fa-picture-o' name='picview' title='预览'></i></a>"; | |||
} else if ($tid == 2) { | |||
return "FLASH"; | |||
} else if ($tid == 3) { | |||
@@ -358,11 +358,11 @@ table{border-collapse:separate} | |||
<td width="90"> 表现方式:</td> | |||
<td> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle1" onClick="checkMuList()" value="1"<?php if($pagestyle==1) echo " checked='checked'"; ?> /> | |||
<img src='../static/web/img/alb2.jpg' alt='单页多图样式' title='单页多图样式'></label> | |||
<img src='../static/web/img/alb2.jpg' title='单页多图样式'></label> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle2" onClick="checkMuList()" value="2"<?php if($pagestyle==2) echo " checked='checked'"; ?> /> | |||
<img src='../static/web/img/alb1.jpg' alt='幻灯片样式' title='幻灯片样式'></label> | |||
<img src='../static/web/img/alb1.jpg' title='幻灯片样式'></label> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle3" onClick="checkMuList()" value="3"<?php if($pagestyle==3) echo " checked='checked'"; ?>/> | |||
<img src='../static/web/img/alb3.jpg' alt='多缩略图样式' title='多缩略图样式'></label></td> | |||
<img src='../static/web/img/alb3.jpg' title='多缩略图样式'></label></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -196,7 +196,7 @@ | |||
<td height="26" class="bline" style="padding-left:10px">文章命名规则:</td> | |||
<td class="bline"> | |||
<input name="namerule" type="text" id="namerule" value="{typedir}/{aid}.html" class="pubinputs" style="width:260px"> | |||
<i class="fa fa-question-circle" alt="帮助" style="cursor:pointer" onClick="ShowHide('helpvar2')"></i> | |||
<i class="fa fa-question-circle" title="帮助" style="cursor:pointer" onClick="ShowHide('helpvar2')"></i> | |||
</td> | |||
</tr> | |||
<tr id='helpvar3' style='display:none'> | |||
@@ -207,7 +207,7 @@ | |||
<td height="26" style="padding-left:10px">列表命名规则:</td> | |||
<td> | |||
<input name="namerule2" type="text" id="namerule2" value="{typedir}/{tid}-{page}.html" class="pubinputs" style="width:260px"> | |||
<i class="fa fa-question-circle" alt="帮助" style="cursor:pointer" onClick="ShowHide('helpvar3')"></i> | |||
<i class="fa fa-question-circle" title="帮助" style="cursor:pointer" onClick="ShowHide('helpvar3')"></i> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -52,7 +52,7 @@ | |||
<td> | |||
<input name="diyid" type="text" id="diyid" size="10" value="<?php echo $newdiyid?>" class='pubinputs' | |||
style='width:60px'> | |||
* <i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help1')"></i> | |||
* <i class="fa fa-question-circle" title="帮助" style="cursor:hand" onClick="showHide2('help1')"></i> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -61,14 +61,14 @@ | |||
<span class="style2" id="help3">自定义表单的中文名称,在后台管理,前台发布等均使用此名字</span> | |||
</td> | |||
<td> | |||
<input name="name" type="text" id="name" style="width:160px" value="自定义表单<?php echo $newdiyid; ?>" class='pubinputs'> *<i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help3')"></i> | |||
<input name="name" type="text" id="name" style="width:160px" value="自定义表单<?php echo $newdiyid; ?>" class='pubinputs'> *<i class="fa fa-question-circle" title="帮助" style="cursor:hand" onClick="showHide2('help3')"></i> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" align="left">数据表:<br> | |||
<span class="style2" id="help5">必须由英文、数字、下划线组成,用于保存自定义表单数据,不能和已有表名重复,创建后不可修改表名</span></td> | |||
<td> | |||
<input name="table" type="text" id="table" style="width:160px" value="<?php echo $cfg_dbprefix; ?>diyform<?php echo $newdiyid; ?>" class='pubinputs'> *<i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help5')"></i> | |||
<input name="table" type="text" id="table" style="width:160px" value="<?php echo $cfg_dbprefix; ?>diyform<?php echo $newdiyid; ?>" class='pubinputs'> *<i class="fa fa-question-circle" title="帮助" style="cursor:hand" onClick="showHide2('help5')"></i> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -55,7 +55,7 @@ | |||
</td> | |||
<td> | |||
<?php echo $diyid; ?> | |||
<i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help1')"></i> | |||
<i class="fa fa-question-circle" title="帮助" style="cursor:hand" onClick="showHide2('help1')"></i> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -70,7 +70,7 @@ | |||
<span class="style2" id="help5">自定义表单数据表创建后不可修改表名</span> | |||
</td> | |||
<td> | |||
<input name="table" type="text" id="table" style="width:160px" value="<?php echo $row['table']; ?>" class='alltxt' disabled='1'> * <i class="fa fa-question-circle" alt="帮助" style="cursor:hand" onClick="showHide2('help5')"></i> | |||
<input name="table" type="text" id="table" style="width:160px" value="<?php echo $row['table']; ?>" class='alltxt' disabled='1'> * <i class="fa fa-question-circle" title="帮助" style="cursor:hand" onClick="showHide2('help5')"></i> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -14,7 +14,7 @@ | |||
<tr> | |||
<td colspan="3" height="26" background="../static/web/img/tbg.gif"> | |||
<div style="float:left"><a href="diy_main.php">自定义表单管理</a> > <?php echo $diy->name; ?></div> | |||
<div style="float:right;padding-right:10px"><a href="/apps/diy.php?action=list&diyid=<?php echo $diy->diyid; ?>" target="_blank"><i class='fa fa-globe' alt='前台预览' title='前台预览'></i> 前台预览</a></div> | |||
<div style="float:right;padding-right:10px"><a href="/apps/diy.php?action=list&diyid=<?php echo $diy->diyid; ?>" target="_blank"><i class="fa fa-globe" title="前台预览"></i> 前台预览</a></div> | |||
</td> | |||
</tr> | |||
{dede:datalist} | |||
@@ -23,7 +23,7 @@ | |||
{ | |||
$allowhtml = array('htmltext'); | |||
$fields['sta'] = $fields['ifcheck'] == 1 ? '已审核':'未审核'; | |||
echo '<tr bgcolor="#F8FDE3" height="26"><td width="18%"><input type="checkbox" name="id[]" value="'.$fields['id'].'" class="np"></td><td><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">'.$fields['id'].'</a> '.$fields['sta'].'</td><td width="12%" align="center"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'"><i class="fa fa-pencil-square-o" title="修改" alt="修改"></i></a></td></tr>'; | |||
echo '<tr bgcolor="#F8FDE3" height="26"><td width="18%"><input type="checkbox" name="id[]" value="'.$fields['id'].'" class="np"></td><td><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">'.$fields['id'].'</a> '.$fields['sta'].'</td><td width="12%" align="center"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'"><i class="fa fa-pencil-square-o" title="修改"></i></a></td></tr>'; | |||
foreach($fieldlist as $field=>$fielddata) | |||
{ | |||
if($fields[$field]=='') continue; | |||
@@ -93,7 +93,7 @@ | |||
if($fields['spacesta']==-2) echo "<span style='color:#dc3545'>[禁言]</span>"; | |||
if($fields['spacesta']==-1) echo "<span style='color:#e74d58'>[未审核]</span>"; | |||
if(!empty($fields['face'])) { | |||
echo "<br><img src='{$fields['face']}' alt='浏览会员空间' style='max-width:80px;height:auto'>"; | |||
echo "<br><img src='{$fields['face']}' title='浏览会员空间' style='max-width:80px;height:auto'>"; | |||
} | |||
?> | |||
</a> | |||
@@ -236,11 +236,9 @@ | |||
<tr> | |||
<td>投稿是否使用缩图</td> | |||
<td> | |||
<label><input name="needpic" type="radio" class="np" value="1" | |||
<?php if($row['needpic']==1) echo " checked='1'"; ?> /> | |||
<label><input name="needpic" type="radio" class="np" value="1" <?php if($row['needpic']==1) echo " checked='1'"; ?> /> | |||
使用 </label> | |||
<label><input name="needpic" type="radio" class="np" value="0" | |||
<?php if($row['needpic']==0) echo " checked='1'"; ?> /> | |||
<label><input name="needpic" type="radio" class="np" value="0" <?php if($row['needpic']==0) echo " checked='1'"; ?> /> | |||
不使用 </label> | |||
</td> | |||
</tr> | |||
@@ -275,88 +273,90 @@ | |||
<td width="18%">数据字段名</td> | |||
<td width="20%">数据类型</td> | |||
<td width="18%">表单类型</td> | |||
<td>维护</td> | |||
<td>操作</td> | |||
</tr> | |||
<?php | |||
if($row['issystem']==-1) | |||
{ | |||
?> | |||
if($row['issystem']==-1) | |||
{ | |||
?> | |||
<tr> | |||
<td colspan='5'>aid 和 typeid 是强制使用字段,这里不列出</td> | |||
</tr> | |||
<?php | |||
} else { | |||
?> | |||
} else { | |||
?> | |||
<tr> | |||
<td colspan='5'>下面列出的字段是附加表的字段,除此外,它还包含主表dede_archives的所有字段</td> | |||
</tr> | |||
<?php | |||
} | |||
$ds = file(DEDEADMIN."/inc/fieldtype.txt"); | |||
foreach($ds as $d){ | |||
$dds = explode(',',trim($d)); | |||
$fieldtypes[$dds[0]] = $dds[1]; | |||
} | |||
$fieldset = stripslashes($row['fieldset']); | |||
$dtp = new DedeTagParse(); | |||
$dtp->SetNameSpace("field","<",">"); | |||
$dtp->LoadSource($fieldset); | |||
if(is_array($dtp->CTags)){ | |||
foreach($dtp->CTags as $ctag) | |||
{ | |||
?> <tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';" height="26"> | |||
<td> | |||
<?php | |||
$itname = $ctag->GetAtt('itemname'); | |||
if($itname=='') echo "没指定"; | |||
else echo $itname; | |||
?></td> | |||
<td><?php echo $ctag->GetTagName(); ?></td> | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('type'); | |||
if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | |||
else echo "系统专用类型"; | |||
?></td> | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('autofield'); | |||
if($ft=='' || $ft==0) { | |||
echo "固化字段"; | |||
} | |||
else { | |||
echo "自动表单"; | |||
} | |||
?> | |||
</td> | |||
<td> | |||
} | |||
$ds = file(DEDEADMIN."/inc/fieldtype.txt"); | |||
foreach($ds as $d){ | |||
$dds = explode(',',trim($d)); | |||
$fieldtypes[$dds[0]] = $dds[1]; | |||
} | |||
$fieldset = stripslashes($row['fieldset']); | |||
$dtp = new DedeTagParse(); | |||
$dtp->SetNameSpace("field","<",">"); | |||
$dtp->LoadSource($fieldset); | |||
if(is_array($dtp->CTags)){ | |||
foreach($dtp->CTags as $ctag) | |||
{ | |||
?> | |||
<tr height="26" align="center" onmousemove="javascript:this.bgColor='#F8FCF1';" onmouseout="javascript:this.bgColor='#ffffff';" height="26"> | |||
<td> | |||
<?php | |||
$itname = $ctag->GetAtt('itemname'); | |||
if($itname=='') echo "没指定"; | |||
else echo $itname; | |||
?> | |||
</td> | |||
<td><?php echo $ctag->GetTagName(); ?></td> | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('type'); | |||
if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | |||
else echo "系统专用类型"; | |||
?> | |||
</td> | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('autofield'); | |||
if($ft=='' || $ft==0) { | |||
echo "固化字段"; | |||
} else { | |||
echo "自动表单"; | |||
} | |||
?> | |||
</td> | |||
<td> | |||
<?php | |||
if($ft==1) | |||
{ | |||
?> | |||
<a href='mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&issystem=<?php echo $row['issystem']; ?>'><i class='fa fa-pencil-square-o' title='修改' alt='修改'></i></a> | |||
if($ft==1) | |||
{ | |||
?> | |||
<a href="mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&issystem=<?php echo $row['issystem']; ?>"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a> | |||
<?php if($row['issystem']!=1){ ?> | |||
| <a href='javascript:;' onClick='javascript:DelNote("mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&action=delete");'><i class='fa fa-trash' alt='删除' title='删除'></i></a> | |||
<a href="javascript:;" onClick="javascript:DelNote('mychannel_field_edit.php?id=<?php echo $id; ?>&fname=<?php echo $ctag->GetTagName(); ?>&action=delete');"><i class="btn btn-sm fa fa-trash" title="删除"></i></a> | |||
<?php } ?> | |||
<?php | |||
} else { | |||
echo "禁止修改"; | |||
} | |||
?> | |||
} else { | |||
echo "禁止修改"; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
<?php | |||
}} | |||
?> | |||
} | |||
} | |||
?> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" width="35%"> | |||
模型字段配置(文本模式)<br> | |||
<td height="26" width="30%">模型字段配置(文本模式)<br> | |||
修改配置文本可调整字段顺序,但不会修改字段属性 | |||
</td> | |||
<td width="65%"><textarea name="fieldset" style="width:98%;height:300px" rows="10" id="fieldset"><?php echo stripslashes($row['fieldset']); ?></textarea></td> | |||
<td width="70%"><textarea name="fieldset" style="width:98%;height:300px" rows="10" id="fieldset"><?php echo stripslashes($row['fieldset']); ?></textarea></td> | |||
</tr> | |||
</table> | |||
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -28,13 +28,13 @@ | |||
</td> | |||
</tr> | |||
<tr height="26"> | |||
<td align="right" colspan="7" style="padding-right:16px">图标说明: | |||
<span class="btn-text"><i class='fa fa-clone' title='复制' alt='复制'></i>复制</span> | |||
<span class="btn-text"><i class='fa fa-file-text-o' title='模板' alt='模板'></i>模板</span> | |||
<span class="btn-text"><i class='fa fa-download' title='导出' alt='导出'></i>导出</span> | |||
<span class="btn-text"><i class='fa fa-pencil-square-o' title='修改' alt='修改'></i>修改</span> | |||
<span class="btn-text"><i class='fa fa-search' title='自定义搜索' alt='自定义搜索'></i>自定义搜索</span> | |||
<span class="btn-text"><i class='fa fa-trash' alt='删除' title='删除'></i>删除</span> | |||
<td align="right" colspan="7">图标说明: | |||
<span class="btn-text"><i class="fa fa-clone" title="复制"></i>复制</span> | |||
<span class="btn-text"><i class="fa fa-file-text-o" title="模板"></i>模板</span> | |||
<span class="btn-text"><i class="fa fa-download" title="导出"></i>导出</span> | |||
<span class="btn-text"><i class="fa fa-pencil-square-o" title="修改"></i>修改</span> | |||
<span class="btn-text"><i class="fa fa-search" title="自定义搜索"></i>自定义搜索</span> | |||
<span class="btn-text"><i class="fa fa-trash" title="删除"></i>删除</span> | |||
</td> | |||
</tr> | |||
<tr align="center" bgcolor="#F8FCF1" height="26"> | |||
@@ -57,12 +57,12 @@ | |||
<td>{dede:field.isshow function="GetSta(@me,$fields['id'])" /}</td> | |||
<td>{dede:field.issystem function='IsSystem(@me)'/}</td> | |||
<td> | |||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=copystart'><i class='btn btn-sm fa fa-clone' title='复制' alt='复制'></i></a> | |||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets'><i class='btn btn-sm fa fa-file-text-o' title='模板' alt='模板'></i></a> | |||
<a href='mychannel_edit.php?id={dede:field.id /}&dopost=export'><i class='btn btn-sm fa fa-download' title='导出' alt='导出'></i></a> | |||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=edit'><i class='btn btn-sm fa fa-pencil-square-o' title='修改' alt='修改'></i></a> | |||
<a href='mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch'><i class='btn btn-sm fa fa-search' title='自定义搜索' alt='自定义搜索'></i></a> | |||
<a href='mychannel_edit.php?id={dede:field.id/}&dopost=delete'><i class='btn btn-sm fa fa-trash' alt='删除' title='删除'></i></a> | |||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=copystart"><i class="btn btn-sm fa fa-clone" title="复制"></i></a> | |||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets"><i class="btn btn-sm fa fa-file-text-o" title="模板"></i></a> | |||
<a href="mychannel_edit.php?id={dede:field.id /}&dopost=export"><i class="btn btn-sm fa fa-download" title="导出"></i></a> | |||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a> | |||
<a href="mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch"><i class="btn btn-sm fa fa-search" title="自定义搜索"></i></a> | |||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=delete"><i class="btn btn-sm fa fa-trash" title="删除"></i></a> | |||
</td> | |||
</tr> | |||
{/dede:datalist} | |||
@@ -9,9 +9,7 @@ | |||
<body> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="100%" height="64" background="../static/web/img/indextitlebg.gif"> | |||
<img src="images/indextitle.gif" width="260" height="64" alt="Power by DedeBIZV6 OX"> | |||
</td> | |||
<td width="100%" height="64" background="../static/web/img/indextitlebg.gif"><img src="images/indextitle.gif"></td> | |||
</tr> | |||
<tr> | |||
<td width="100%" height="26"> | |||
@@ -31,9 +29,7 @@ | |||
<td width="100%" height="4"></td> | |||
</tr> | |||
<tr> | |||
<td width="100%" height="26"> | |||
{dede:winform/} | |||
</td> | |||
<td width="100%" height="26">{dede:winform/}</td> | |||
</tr> | |||
<tr> | |||
<td width="100%" height="2"></td> | |||
@@ -41,7 +37,6 @@ | |||
</table> | |||
<p align="center"> | |||
{dede:lang_cms_powerby/} | |||
<br> | |||
</p> | |||
</body> | |||
</html> |
@@ -64,7 +64,7 @@ if($tagid !='') | |||
$row['picname'] = $row['litpic']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'],$titlelen); | |||
@@ -561,8 +561,8 @@ class FreeList | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['textlink'] = "<a href='".$row['filename']."' title='".str_replace("'", "", $row['title'])."'>".$row['title']."</a>"; | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>[".$row['typename']."]</a>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'><img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".str_replace("'", "", $row['title'])."'></a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".str_replace("'", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'><img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".str_replace("'", "", $row['title'])."'></a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".str_replace("'", "", $row['title'])."'>"; | |||
$row['plusurl'] = $row['phpurl'] = $GLOBALS['cfg_phpurl']; | |||
$row['memberurl'] = $GLOBALS['cfg_memberurl']; | |||
$row['templeturl'] = $GLOBALS['cfg_templeturl']; | |||
@@ -763,7 +763,7 @@ class ListView | |||
$row['picname'] = $row['litpic']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".preg_replace("/['><]/", "", $row['title'])."'>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".preg_replace("/['><]/", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'], $titlelen); | |||
@@ -364,7 +364,7 @@ class TagList | |||
$row['picname'] = $row['litpic']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".preg_replace("/['><]/", "", $row['title'])."'>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".preg_replace("/['><]/", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'], $titlelen); | |||
@@ -365,7 +365,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||
$row['picname'] = $row['litpic']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'], $titlelen); | |||
@@ -189,7 +189,7 @@ function lib_arclistsg(&$ctag, &$refObj) | |||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | |||
} | |||
$row['picname'] = $row['litpic']; | |||
$row['image'] = "<img src='".$row['picname']."' width='{$imgwidth}' height='{$imgheight}' alt='".preg_replace("#['><]#", "", $row['title'])."' />"; | |||
$row['image'] = "<img src='".$row['picname']."' width='{$imgwidth}' height='{$imgheight}' title='".preg_replace("#['><]#", "", $row['title'])."' />"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
@@ -137,7 +137,7 @@ function lib_likearticle(&$ctag, &$refObj) | |||
$row['picname'] = $row['litpic']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' alt='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'], $titlelen); | |||
@@ -125,7 +125,7 @@ function lib_relation(&$ctag, &$refObj) | |||
$row['pubdate'] = isset($row['pubdate']) ? $row['pubdate'] : $row['senddate']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' alt='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['image'] = "<img src='".$row['picname']."' title='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'], $titlelen); | |||