Browse Source

更新

adminstyle
叙述、别离 1 week ago
parent
commit
c155326dc2
2 changed files with 5 additions and 11 deletions
  1. +4
    -10
      src/admin/tags_main.php
  2. +1
    -1
      src/admin/templets/tags_main.htm

+ 4
- 10
src/admin/tags_main.php View File

@@ -30,9 +30,7 @@ if (empty($action)) {
$dlist->SetSource($query);
$dlist->Display();
exit();
}
//function update()
else if ($action == 'update') {
} else if ($action == 'update') {
$tid = (empty($tid) ? 0 : intval($tid));
$count = (empty($count) ? 0 : intval($count));
if (empty($tid)) {
@@ -43,9 +41,7 @@ else if ($action == 'update') {
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功保存标签点击信息", 'tags_main.php');
exit();
}
//function delete()
else if ($action == 'delete') {
} else if ($action == 'delete') {
if (@is_array($ids)) {
$stringids = implode(',', $ids);
} else if (!empty($ids)) {
@@ -76,9 +72,7 @@ else if ($action == 'delete') {
$now = time();
$dsql->ExecuteNoneQuery("UPDATE `#@__tagindex` SET title='{$title}',keywords='{$kw}',`description`='{$des}',`uptime`='{$now}' WHERE id = {$tid}");
echo json_encode(array('code' => 200, 'result' => true));
}
//function fetch()
else if ($action == 'fetch') {
} else if ($action == 'fetch') {
$wheresql = '';
$start = isset($start) && is_numeric($start) ? $start : 0;
$where = array();
@@ -127,7 +121,7 @@ else if ($action == 'fetch') {
$dsql->ExecuteNoneQuery($query);
$tid = $dsql->GetLastID();
}
$query = "REPLACE INTO `#@__taglist` (`tid`,`aid`,`typeid`,`arcrank`,`tag`) VALUES ('$tid', '$aid', '$typeid','$arcrank','$keyword'); ";
$query = "REPLACE INTO `#@__taglist` (`tid`,`aid`,`typeid`,`arcrank`,`tag`) VALUES ('$tid','$aid','$typeid','$arcrank','$keyword'); ";
$dsql->ExecuteNoneQuery($query);
}
}


+ 1
- 1
src/admin/templets/tags_main.htm View File

@@ -55,7 +55,7 @@
<td><input type="checkbox" name="ids[]" value="<?php echo $fields['id'];?>"></td>
<td>{dede:field.id/}</td>
<td><a href="<?php echo $cfg_phpurl;?>/tags.php?/<?php echo $fields['id'];?>/" target="_blank">{dede:field.tag/}</a></td>
<td><input type="text" value="<?php echo $fields['count'];?>" id="count<?php echo $fields['id'];?>" size='5'></td>
<td><input type="text" value="<?php echo $fields['count'];?>" id="count<?php echo $fields['id'];?>" class="admin-input-sm"></td>
<td><?php echo $fields['total'];?></td>
<td><?php echo $fields['addtime'];?></td>
<td><?php echo $fields['uptime'];?></td>


Loading…
Cancel
Save