コード例 #1
0


if (isset($_GET['valor']))
{
	    $evento=$_GET['valor'];

		if($evento=="createXML")
		{
			$ls_nroreg="%%";
			$ls_codprov="%%";
			$ls_des="%%";
			$ls_fecsol1=$_REQUEST['txtfecsoldes'];
			$ls_fecsol2=$_REQUEST['txtfecsolhas'];
		    header('Content-type:text/xml');
			print $io_solicitud->uf_srh_buscar_solicitud_adiestramiento($ls_nroreg,$ls_fecsol1,$ls_fecsol2,$ls_codprov,$ls_des);
		}
		
		elseif($evento=="buscar")
		{
			$ls_nroreg="%".utf8_encode($_REQUEST['txtnroreg'])."%";
			$ls_codprov="%".utf8_encode($_REQUEST['txtcodprov'])."%";
			$ls_des="%".utf8_encode($_REQUEST['txtdes'])."%";
			$ls_fecsol1=$_REQUEST['txtfecsoldes'];
			$ls_fecsol2=$_REQUEST['txtfecsolhas'];
			header('Content-type:text/xml');
			print $io_solicitud->uf_srh_buscar_solicitud_adiestramiento($ls_nroreg,$ls_fecsol1,$ls_fecsol2,$ls_codprov,$ls_des);
		}
	  elseif($evento=="createXML_proveedor")
		{
			$ls_codprov="%%";