本文整理汇总了PHP中UpIndexKey函数的典型用法代码示例。如果您正苦于以下问题:PHP UpIndexKey函数的具体用法?PHP UpIndexKey怎么用?PHP UpIndexKey使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UpIndexKey函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AnalyseHtmlBody
if ($vs[1] == 'htmltext' || $vs[1] == 'textdata') {
${$vs[0]} = AnalyseHtmlBody(${$vs[0]}, $description, $vs[1]);
}
${$vs[0]} = GetFieldValueA(${$vs[0]}, $vs[1], $aid);
$inadd_f .= ',`' . $vs[0] . "` ='" . ${$vs[0]} . "' ";
}
}
}
if ($addtable != '') {
$upQuery = "Update `{$addtable}` set `title`='{$title}',`typeid`='{$typeid}',`arcrank`='{$arcrank}',litpic='{$litpic}',userip='{$userip}'{$inadd_f} where aid='{$aid}' ";
if (!$dsql->ExecuteNoneQuery($upQuery)) {
ShowMsg("更新附加表 `{$addtable}` 时出错,请联系管理员!", "javascript:;");
exit;
}
}
UpIndexKey($aid, 0, $typeid, $sortrank, '');
$artUrl = MakeArt($aid, true);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$aid}";
}
//返回成功信息
$msg = " 请选择你的后续操作:\r\n\t\t<a href='archives_sg_add.php?cid={$typeid}'><u>发布新内容</u></a>\r\n\t\t \r\n\t\t<a href='archives_do.php?channelid={$channelid}&aid=" . $aid . "&dopost=edit'><u>查看更改</u></a>\r\n\t\t \r\n\t\t<a href='{$artUrl}' target='_blank'><u>查看内容</u></a>\r\n\t\t \r\n\t\t<a href='content_sg_list.php?channelid={$channelid}'><u>管理内容</u></a>\r\n\t\t";
$wintitle = "成功更改内容!";
$wecome_info = "内容管理::更改内容";
$win = new OxWindow();
$win->AddTitle("成功更改内容:");
$win->AddMsgItem($msg);
$winform = $win->GetWindow("hand", " ", false);
$win->Display();
}
}
示例2: ShowMsg
ShowMsg('更新数据库archives表时出错,请检查', -1);
exit;
}
$cts = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='{$channelid}' ");
$addtable = trim($cts['addtable']);
if ($addtable != '') {
$useip = GetIP();
$templet = empty($templet) ? '' : $templet;
$iquery = "UPDATE `{$addtable}` SET typeid='{$typeid}',body='{$body}'{$inadd_f},redirecturl='{$redirecturl}',templet='{$templet}',userip='{$useip}' WHERE aid='{$id}'";
if (!$dsql->ExecuteNoneQuery($iquery)) {
ShowMsg("更新附加表 `{$addtable}` 时出错,请检查原因!", "javascript:;");
exit;
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) {
exit('Error:None FTP Connection!');
}
}
$artUrl = MakeArt($id, true, true, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$id}";
}
示例3: trim
}
//处理图片文档的自定义属性
if ($litpic != '' && !preg_match("#p#", $flag)) {
$flag = $flag == '' ? 'p' : $flag . ',p';
}
$cts = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='{$channelid}' ");
$addtable = trim($cts['addtable']);
if ($addtable != '') {
$iquery = "UPDATE `{$addtable}` SET typeid='{$typeid}',arcrank='{$arcrank}',title='{$title}',flag='{$flag}',litpic='{$litpic}'{$inadd_f} WHERE aid='{$id}' ";
if (!$dsql->ExecuteNoneQuery($iquery)) {
ShowMsg("更新附加表 `{$addtable}` 时出错,请检查原因!", "javascript:;");
exit;
}
}
//生成HTML
UpIndexKey($id, $arcrank, $typeid, $sortrank, '');
if ($cfg_remote_site == 'Y' && $isremote == "1") {
if ($serviterm != "") {
list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
$config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
} else {
$config = array();
}
if (!$ftp->connect($config)) {
exit('Error:None FTP Connection!');
}
}
$artUrl = MakeArt($id, TRUE, TRUE, $isremote);
if ($artUrl == '') {
$artUrl = $cfg_phpurl . "/view.php?aid={$id}";
}