这是matlab的一个小程序
源代码在线查看: mytag_edit.php
require(dirname(__FILE__)."/config.php");
CheckPurview('temp_Other');
require_once(DEDEINC."/typelink.class.php");
if(empty($dopost))
{
$dopost = "";
}
$aid = ereg_replace("[^0-9]","",$aid);
$ENV_GOBACK_URL = empty($_COOKIE['ENV_GOBACK_URL']) ? "mytag_main.php" : $_COOKIE['ENV_GOBACK_URL'];
if($dopost=="delete")
{
$dsql->ExecuteNoneQuery("Delete From #@__mytag where aid='$aid'");
ShowMsg("成功删除一个自定义标记!",$ENV_GOBACK_URL);
exit();
}
else if($dopost=="saveedit")
{
$starttime = GetMkTime($starttime);
$endtime = GetMkTime($endtime);
$query = "Update #@__mytag
set
typeid='$typeid',
timeset='$timeset',
starttime='$starttime',
endtime='$endtime',
normbody='$normbody',
expbody='$expbody'
where aid='$aid' ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("成功更改一个自定义标记!",$ENV_GOBACK_URL);
exit();
}
else if($dopost=="getjs")
{
require_once(DEDEINC."/oxwindow.class.php");
$jscode = "";
$showhtml = "\r\n\r\n$jscode\r\n\r\n";
$showhtml .= "预览:";
$wintitle = "宏标记定义-获取JS";
$wecome_info = "宏标记定义::获取JS";
$win = new OxWindow();
$win->Init();
$win->AddTitle("以下为选定宏标记的JS调用代码:");
$winform = $win->GetWindow("hand",$showhtml);
$win->Display();
exit();
}
else if($dopost=="testjs")
{
echo "";
exit();
}
$row = $dsql->GetOne("Select * From #@__mytag where aid='$aid'");
include DedeInclude('templets/mytag_edit.htm');
?>