Browse Source

代码调整

tags/6.0.0
tianya 2 months ago
parent
commit
183d1ab45a
6 changed files with 18 additions and 21 deletions
  1. +1
    -1
      src/dede/archives_do.php
  2. +4
    -4
      src/dede/article_coonepage_rule.php
  3. +1
    -1
      src/dede/catalog_del.php
  4. +6
    -9
      src/dede/config.php
  5. +4
    -4
      src/dede/inc/inc_archives_all.php
  6. +2
    -2
      src/dede/sys_info.php

+ 1
- 1
src/dede/archives_do.php View File

@@ -992,7 +992,7 @@ else if($dopost=='attsDlg')
while($trow = $dsql->GetObject())
{
if($trow->att=='j' || $trow->att=='p') continue;
echo "<input class='np' type='radio' name='flagname' id='flags{$trow->att}' value='{$trow->att}' />{$trow->attname}.{$trow->att}";
echo "<label><input class='np' type='radio' name='flagname' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}.{$trow->att}</label>";
}
?>
</td>


+ 4
- 4
src/dede/article_coonepage_rule.php View File

@@ -82,10 +82,10 @@ else if($action == 'editload')
<tr>
<td height="30">用作文章来源:</td>
<td colspan="2">
<input type="radio" name="issource" value="0" <?php echo ($row['issource']==0 ? ' checked="checked" ' : ''); ?> />
<input name="issource" type="radio" value="1" <?php echo ($row['issource']==1 ? ' checked="checked" ' : ''); ?> />
<label><input type="radio" name="issource" value="0" <?php echo ($row['issource']==0 ? ' checked="checked" ' : ''); ?> />
</label>
<label><input name="issource" type="radio" value="1" <?php echo ($row['issource']==1 ? ' checked="checked" ' : ''); ?> />
</label>
</td>
</tr>
<tr>


+ 1
- 1
src/dede/catalog_del.php View File

@@ -37,6 +37,6 @@ $win->AddHidden('id',$id);
$win->AddHidden('dopost','ok');
$win->AddTitle("你要确实要删除栏目: [{$row['typename']}] 吗?");
$win->AddItem('栏目的文件保存目录:',$row['typedir']);
$win->AddItem('是否删除文件:',"<input type='radio' name='delfile' class='np' value='no' checked='1' />否 &nbsp;<input type='radio' name='delfile' class='np' value='yes' />是");
$win->AddItem('是否删除文件:',"<label><input type='radio' name='delfile' class='np' value='no' checked='1' /> </label> <label>&nbsp;<input type='radio' name='delfile' class='np' value='yes' /> </label>");
$winform = $win->GetWindow('ok');
$win->Display();

+ 6
- 9
src/dede/config.php View File

@@ -162,7 +162,7 @@ if(strlen($cfg_cookie_encode)<=10)
*/
function UpDateCatCache()
{
global $dsql, $cfg_multi_site, $cache1, $cacheFile, $cuserLogin;
global $dsql, $cache1, $cuserLogin;
$cache2 = DEDEDATA.'/cache/channelsonlist.inc';
$cache3 = DEDEDATA.'/cache/channeltoplist.inc';
$dsql->SetQuery("SELECT id,reid,channeltype,issend,typename FROM `#@__arctype`");
@@ -214,7 +214,6 @@ function DedeInclude($filename, $isabs=FALSE)
return $isabs ? $filename : DEDEADMIN.'/'.$filename;
}

helper('cache');
/**
* 根据用户mid获取用户名称
*
@@ -225,13 +224,11 @@ helper('cache');
if(!function_exists('GetMemberName')){
function GetMemberName($mid=0)
{
global $dsql;
$rs = GetCache('memberlogin', $mid);
if( empty($rs) )
{
$rs = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='{$mid}' ");
SetCache('memberlogin', $mid, $rs, 1800);
}
global $dsql;
if (empty($mid)) {
return "管理员";
}
$rs = $dsql->GetOne("SELECT * FROM `#@__member` WHERE mid='{$mid}' ");
return $rs['uname'];
}
}

+ 4
- 4
src/dede/inc/inc_archives_all.php View File

@@ -59,11 +59,11 @@ function GetFormItem($ctag)
{
if($i==0)
{
$myformItem .= "<input type='radio' name='$fieldname' class='np' value='$v' checked>$v\r\n";
$myformItem .= "<label><input type='radio' name='$fieldname' class='np' value='$v' checked> $v</label>\r\n";
}
else
{
$myformItem .= "<input type='radio' name='$fieldname' class='np' value='$v'>$v\r\n";
$myformItem .= "<label><input type='radio' name='$fieldname' class='np' value='$v'> $v</label>\r\n";
}
}
}
@@ -318,11 +318,11 @@ function GetFormItemValue($ctag, $fvalue)
{
if($fvalue==$v)
{
$myformItem.= "<input type='radio' name='$fieldname' class='np' value='$v' checked>$v\r\n";
$myformItem.= "<label><input type='radio' name='$fieldname' class='np' value='$v' checked> $v</label>\r\n";
}
else
{
$myformItem.= "<input type='radio' name='$fieldname' class='np' value='$v'>$v\r\n";
$myformItem.= "<label><input type='radio' name='$fieldname' class='np' value='$v'> $v</label>\r\n";
}
}
}


+ 2
- 2
src/dede/sys_info.php View File

@@ -141,8 +141,8 @@ EOT;
$c1='';
$c2 = '';
$row['value']=='Y' ? $c1=" checked" : $c2=" checked";
echo "<input type='radio' class='np' name='edit___{$row['varname']}' value='Y'$c1>";
echo "<input type='radio' class='np' name='edit___{$row['varname']}' value='N'$c2>";
echo "<label><input type='radio' class='np' name='edit___{$row['varname']}' value='Y'$c1> 是</label>";
echo "<label><input type='radio' class='np' name='edit___{$row['varname']}' value='N'$c2> 否</label>";
}else if($row['type']=='bstring')
{
echo "<textarea name='edit___{$row['varname']}' row='4' id='edit___{$row['varname']}' class='textarea_info' style='width:98%;height:50px'>".dede_htmlspecialchars($row['value'])."</textarea>";


Loading…
Cancel
Save