当前位置: 首页>>代码示例>>PHP>>正文


PHP class_datastore类代码示例

本文整理汇总了PHP中class_datastore的典型用法代码示例。如果您正苦于以下问题:PHP class_datastore类的具体用法?PHP class_datastore怎么用?PHP class_datastore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了class_datastore类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: uf_imprimirresultados

function uf_imprimirresultados($as_codpai, $as_despai)
{
    require_once "../shared/class_folder/sigesp_include.php";
    $in = new sigesp_include();
    $con = $in->uf_conectar();
    require_once "../shared/class_folder/class_mensajes.php";
    $io_msg = new class_mensajes();
    require_once "../shared/class_folder/class_sql.php";
    $io_sql = new class_sql($con);
    $ds = new class_datastore();
    print "<table width=500 border=0 cellpadding=1 cellspacing=1 class=fondo-tabla align=center>";
    print "<tr class=titulo-celda>";
    print "<td width=60>Código</td>";
    print "<td width=440>Descripción</td>";
    print "</tr>";
    $ls_sql = "SELECT codpai,despai FROM sigesp_pais" . " WHERE codpai like '" . $as_codpai . "'" . " AND despai like '" . $as_despai . "'";
    $rs_pai = $io_sql->select($ls_sql);
    if ($row = $io_sql->fetch_row($rs_pai)) {
        $data = $io_sql->obtener_datos($rs_pai);
        $ds->data = $data;
        $li_rows = $ds->getRowCount("codpai");
        for ($li_index = 1; $li_index <= $li_rows; $li_index++) {
            print "<tr class=celdas-blancas>";
            $ls_codpai = $data["codpai"][$li_index];
            $ls_despai = $data["despai"][$li_index];
            print "<td><a href=\"javascript: aceptar('{$ls_codpai}','{$ls_despai}');\">" . $ls_codpai . "</a></td>";
            print "<td>" . $ls_despai . "</td>";
            print "</tr>";
        }
    } else {
        $io_msg->message("No hay registros");
    }
    print "</table>";
}
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:34,代码来源:sigesp_saf_cat_pais.php

示例2: uf_imprimirresultados

   function uf_imprimirresultados($as_codpai, $as_codest, $as_desest)
   {
		require_once("..\shared\class_folder\sigesp_include.php");
		$in=new sigesp_include();
		$con=$in->uf_conectar();
		require_once("..\shared\class_folder\class_mensajes.php");
		$msg=new class_mensajes();
		require_once("..\shared\class_folder\class_sql.php");
		$SQL=new class_sql($con);
		$ds=new class_datastore();
		print "<table width=500 border=0 cellpadding=1 cellspacing=1 class=fondo-tabla align=center>";
		print "<tr class=titulo-celda>";
		print "<td width=60>Código</td>";
		print "<td width=440>Descripción</td>";
		print "</tr>";
		$ls_sql="SELECT codest,desest FROM sigesp_estados".
				" WHERE (codpai='".$as_codpai."')".
				" AND(codest like '".$as_codest."'".
				" AND desest like '".$as_desest."')";
				
		$rs_est=$SQL->select($ls_sql);
		if($row=$SQL->fetch_row($rs_est))
		{
			$data=$SQL->obtener_datos($rs_est);
			$ds->data=$data;
			$li_rows=$ds->getRowCount("codest");
			for($li_index=1;$li_index<=$li_rows;$li_index++)
			{
				print "<tr class=celdas-blancas>";
				$ls_codest=$data["codest"][$li_index];
				$ls_desest=$data["desest"][$li_index];
				
				print "<td><a href=\"javascript: aceptar('$ls_codest','$ls_desest');\">".$ls_codest."</a></td>";
				print "<td>".$ls_desest."</td>";
				print "</tr>";			
			}
		}
		print "</table>";
   }
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:39,代码来源:sigesp_cat_estado.php

示例3: sigesp_include

$ls_loncodestpro3 = $_SESSION["la_empresa"]["loncodestpro3"];
$li_longestpro3 = 25 - $ls_loncodestpro3 + 1;
if ($li_estmodest == '2') {
    $ls_loncodestpro4 = $_SESSION["la_empresa"]["loncodestpro4"];
    $li_longestpro4 = 25 - $ls_loncodestpro4 + 1;
    $ls_loncodestpro5 = $_SESSION["la_empresa"]["loncodestpro5"];
    $li_longestpro5 = 25 - $ls_loncodestpro5 + 1;
}
$in = new sigesp_include();
$con = $in->uf_conectar();
$dat = $_SESSION["la_empresa"];
$io_msg = new class_mensajes();
$grid = new grid_param();
$io_funcion = new class_funciones();
$io_sql = new class_sql($con);
$io_ds = new class_datastore();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Cat&aacute;logo de Cuentas Presupuestarias</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
a:link {
	color: #006699;
}
a:visited {
	color: #006699;
}
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_spg_cat_ctaspg.php

示例4: sigesp_include

</style></head>

<body>
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
   <td width="496" colspan="2" class="titulo-celda">Cat&aacute;logo de Documentos</td>
  </tr>
</table>
<div align="center"><br>
  <?php 
require_once "../../shared/class_folder/sigesp_include.php";
require_once "../../shared/class_folder/class_datastore.php";
require_once "../../shared/class_folder/class_sql.php";
$io_in = new sigesp_include();
$con = $io_in->uf_conectar();
$io_ds = new class_datastore();
$io_sql = new class_sql($con);
$arr = $_SESSION["la_empresa"];
$ls_sql = " SELECT codtipdoc,dentipdoc,estpre,estcon,tipodocanti " . " FROM cxp_documento " . " ORDER BY codtipdoc ASC";
$rs_doc = $io_sql->select($ls_sql);
$data = $rs_doc;
if ($row = $io_sql->fetch_row($rs_doc)) {
    //1
    $data = $io_sql->obtener_datos($rs_doc);
    $arrcols = array_keys($data);
    $totcol = count($arrcols);
    $io_ds->data = $data;
    $totrow = $io_ds->getRowCount("codtipdoc");
    print "<table width=500 border=0 cellpadding=1 cellspacing=1 class=fondo-tabla>";
    print "<tr class=titulo-celda>";
    print "<td>Código </td>";
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cxp_cat_documentos.php

示例5: uf_calcular

	function uf_calcular($data,$ls_mesano)		 
	{
		$ds_mov=new class_datastore();	
		$ds_mov->data=$data;
		$li_total=$ds_mov->getRowCount("numdoc");
		$ldec_CreditosTmp=0;
		$ldec_CreditosTmpNeg=0;
		$ldec_DebitosTmp=0;
		$ldec_DebitosTmpNeg=0;
		for($li_i=1;$li_i<=$li_total;$li_i++)
		{
			$ls_codope=$ds_mov->getValue("codope",$li_i);
			$ls_estmov=$ds_mov->getValue("estmov",$li_i);
			$ldec_monto=$ds_mov->getValue("monto",$li_i);
			if((($ls_codope=='CH')||($ls_codope=='ND')||($ls_codope=='RE'))&&($ls_estmov<>'A'))
			{
				$ldec_CreditosTmp=$ldec_CreditosTmp+$ldec_monto;
			}
			if((($ls_codope=='CH')||($ls_codope=='ND')||($ls_codope=='RE'))&&($ls_estmov=='A'))
			{
				$ldec_CreditosTmpNeg=$ldec_CreditosTmpNeg+$ldec_monto;
			}
			if((($ls_codope=='DP')||($ls_codope=='NC'))&&($ls_estmov<>'A'))
			{
				$ldec_DebitosTmp=$ldec_DebitosTmp+$ldec_monto;
			}
			if((($ls_codope=='DP')||($ls_codope=='NC'))&&($ls_estmov=='A'))
			{
				$ldec_DebitosTmpNeg=$ldec_DebitosTmpNeg+$ldec_monto;
			}
		}
		$ldec_DebitosAnt = $ldec_DebitosTmp-$ldec_DebitosTmpNeg;
		$ldec_CreditosAnt = $ldec_CreditosTmp-$ldec_CreditosTmpNeg;
		$ldec_SaldoAnterior = $ldec_DebitosAnt - $ldec_CreditosAnt;
				
		return round($ldec_SaldoAnterior,2);	
	
	}
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:38,代码来源:sigesp_scb_class_report_ori.php

示例6: array

    $la_columnas = array('titulo' => '<b>Factura</b>', 'monto' => '<b>Total</b>');
    $la_config = array('showHeadings' => 0, 'fontSize' => 9, 'titleFontSize' => 12, 'showLines' => 0, 'shaded' => 0, 'width' => 540, 'maxWidth' => 540, 'xOrientation' => 'center', 'outerLineThickness' => 0.5, 'innerLineThickness' => 0.5, 'cols' => array('titulo' => array('justification' => 'right', 'width' => 480), 'monto' => array('justification' => 'right', 'width' => 90)));
    // Justificación y ancho de la columna
    $io_pdf->ezTable($la_datatot, $la_columnas, '', $la_config);
}
// end function uf_print_total_bsf
//-----------------------------------------------------------------------------------------------------------------------------------
//-----------------------------------------------------  Instancia de las clases  ------------------------------------------------
require_once "../../shared/ezpdf/class.ezpdf.php";
require_once "../../shared/class_folder/class_funciones.php";
$io_funciones = new class_funciones();
require_once "../class_folder/class_funciones_cxp.php";
$io_fun_cxp = new class_funciones_cxp();
$ls_estmodest = $_SESSION["la_empresa"]["estmodest"];
require_once "../../shared/class_folder/class_datastore.php";
$ds_dentipdoc = new class_datastore();
//Instancio a la clase de conversión de numeros a letras.
include "../../shared/class_folder/class_numero_a_letra.php";
$numalet = new class_numero_a_letra();
//imprime numero con los valore por defecto
//cambia a minusculas
$numalet->setMayusculas(1);
//cambia a femenino
$numalet->setGenero(1);
//cambia moneda
$numalet->setMoneda("Bolivares");
//cambia prefijo
$numalet->setPrefijo("***");
//cambia sufijo
$numalet->setSufijo("***");
if ($ls_estmodest == 1) {
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cxp_rfs_solicitudes_sata.php

示例7: ue_search

        </select></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td height="22"><div align="right"><a href="javascript: ue_search();"><img src="../shared/imagebank/tools15/buscar.gif" alt="Buscar" width="15" height="15" border="0">Buscar</a></div></td>
      </tr>
    </table>
  <br>
    <?php
require_once("../shared/class_folder/sigesp_include.php");
$in=     new sigesp_include();
$con=$in->uf_conectar();
require_once("../shared/class_folder/class_mensajes.php");
$io_msg= new class_mensajes();
require_once("../shared/class_folder/class_datastore.php");
$ds=     new class_datastore();
require_once("../shared/class_folder/class_sql.php");
$io_sql= new class_sql($con);
require_once("../shared/class_folder/class_funciones.php");
$io_fun= new class_funciones();
$arr=$_SESSION["la_empresa"];
$ls_codemp=$arr["codemp"];

if(array_key_exists("operacion",$_POST))
{
	$ls_operacion=$_POST["operacion"];
	$ls_codtra="%".$_POST["txtcodtra"]."%";
	$ls_dentra="%".$_POST["txtdentra"]."%";
	$ls_codtiptra=$_POST["cmbcodtiptra"];
}
else
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_scv_cat_transporte.php

示例8: require_once

<body>
<table width="500" border="0" align="center" cellpadding="1" cellspacing="1">
    <tr>
      <td width="496" colspan="2" class="titulo-celda">Cat&aacute;logo de Estados</td>
    </tr>
</table>
<br>
    <?
require_once("sigesp_include.php");
require_once ("class_folder\class_datastore.php");
require_once ("class_folder\class_sql.php");

$io_conect=new sigesp_include();
$conn=$io_conect->uf_conectar();
$io_dsest=new class_datastore();
$io_sql=new class_sql($conn);

if (array_key_exists("operacion",$_POST))
{
	$ls_codpais=$_POST["hidpais"];
}
else
{
	if(array_key_exists("pais",$_GET))
	{
		$ls_codpais=$_GET["pais"];
	}
	else
	{
		$ls_codpais="";
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:30,代码来源:sigesp_cat_estados.php

示例9: ue_search

      </tr>
      <tr>
        <td height="22">&nbsp;</td>
        <td height="22"><div align="right"><a href="javascript: ue_search();"><img src="../../shared/imagebank/tools20/buscar.gif" alt="Buscar" width="20" height="20" border="0"> Buscar</a></div></td>
      </tr>
    </table>
	<br>
    <?php 
require_once "../../shared/class_folder/sigesp_include.php";
$in = new sigesp_include();
$con = $in->uf_conectar();
require_once "../../shared/class_folder/class_mensajes.php";
$io_msg = new class_mensajes();
require_once "../../shared/class_folder/class_sql.php";
$SQL = new class_sql($con);
$ds = new class_datastore();
$ls_codemp = $arr["codemp"];
require_once "../class_folder/class_funciones_cfg.php";
$fun = new class_funciones_cfg();
$ls_destino = $fun->uf_obtenervalor_get("destino", "");
if (array_key_exists("operacion", $_POST)) {
    $ls_operacion = $_POST["operacion"];
    $ls_codigo = "%" . $_POST["codigo"] . "%";
    $ls_denominacion = "%" . $_POST["denominacion"] . "%";
} else {
    $ls_operacion = "BUSCAR";
    $ls_codigo = "%%";
    $ls_denominacion = "%%";
}
print "<table width=500 border=0 cellpadding=1 cellspacing=1 class=fondo-tabla align=center>";
print "<tr class=titulo-celda>";
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_scb_cat_conceptos.php

示例10: require_once

<link href="../shared/css/tablas.css" rel="stylesheet" type="text/css">
<script type="text/javascript" language="JavaScript1.2" src="../shared/js/number_format.js"></script>
</head>

<body>
<form name="form1" method="post" action="">
<?php

require_once("../shared/class_folder/sigesp_include.php");
$in=new sigesp_include();
$con=$in->uf_conectar();
require_once("../shared/class_folder/class_mensajes.php");
$msg=new class_mensajes();
require_once("../shared/class_folder/class_sql.php");
$SQL=new class_sql($con);
$ds=new class_datastore();
require_once("../shared/class_folder/class_funciones.php");
$fun=new class_funciones();
$ls_codemp=$arr["codemp"];
require_once("sigesp_c_cuentas_banco.php");
$io_ctaban = new sigesp_c_cuentas_banco();

if(array_key_exists("operacion",$_POST))
{
	$ls_operacion=$_POST["operacion"];
	$ls_codigo=$_POST["codigo"];
	$ls_denban=$_POST["denban"];
	$ls_ctaban="%".$_POST["cuenta"]."%";
	$ls_denominacion="%".$_POST["denominacion"]."%";
}
else
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cat_ctabancoorigen.php

示例11: require_once

<body>
<form name="form1" method="post" action="">
<input type="hidden" name="campo" id="campo" value="<? print $ls_campo;?>" >
<input type="hidden" name="orden" id="orden" value="<? print $ls_orden;?>">
<?

require_once("../shared/class_folder/sigesp_include.php");
require_once("../shared/class_folder/class_mensajes.php");
require_once("../shared/class_folder/class_sql.php");
require_once("../shared/class_folder/class_funciones.php");
require_once("class_folder/sigesp_sob_c_unidad.php");
$io_include=new sigesp_include();
$io_connect=$io_include->uf_conectar();
$io_msg=new class_mensajes();
$io_sql=new class_sql($io_connect);
$io_data=new class_datastore();
$io_funcion=new class_funciones();
$io_cunid=new sigesp_sob_c_unidad();
$ls_codemp=$la_datemp["codemp"];

if(array_key_exists("operacion",$_POST))
{
	$ls_operacion=$_POST["operacion"];
	$ls_codtun="%".$_POST["cmbtipouni"]."%";
	$ls_nomuni="%".$_POST["nomuni"]."%";
	$ls_tipounidad=$_POST["cmbtipouni"];
	$ls_nomunidad=$_POST["nomuni"];

}
else
{
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cat_unidades.php

示例12: class_mensajes

  </tr>
</table>
<br>
<form name="form1" method="post" action="">
<input type="hidden" name="campo" id="campo" value="<? print $ls_campo;?>" >
<input type="hidden" name="orden" id="orden" value="<? print $ls_orden;?>">
  <div align="center">
<?Php
	require_once("../shared/class_folder/sigesp_include.php");
	require_once("../shared/class_folder/class_datastore.php");
	require_once("../shared/class_folder/class_sql.php");
	require_once("../shared/class_folder/class_mensajes.php");
	$io_msg=new class_mensajes();	
	$io_conect=new sigesp_include();
	$conn=$io_conect->uf_conectar();
	$io_dstipocontrato=new class_datastore();
	$io_sql=new class_sql($conn);
	$ls_sql=" SELECT *
			  FROM sob_tipocontrato
			  ORDER BY $ls_campo $ls_orden";
	$rs_data=$io_sql->select($ls_sql);
	$data=$rs_data;
	if($row=$io_sql->fetch_row($rs_data))
	{
		$data=$io_sql->obtener_datos($rs_data);
		$la_arrcols=array_keys($data);
		$li_totcol=count($la_arrcols);
		$io_dstipocontrato->data=$data;
		$li_totrow=$io_dstipocontrato->getRowCount("codtco");
		print "<table width=500 border=0 cellpadding=1 cellspacing=1 class=fondo-tabla>";
		print "<tr class=titulo-celda>";
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cat_tipocontrato.php

示例13: session_start

<?php
session_start();
require_once("../shared/class_folder/sigesp_include.php");
require_once("../shared/class_folder/class_funciones.php");
require_once("../shared/class_folder/class_mensajes.php");
require_once("../shared/class_folder/class_fecha.php");
require_once("../shared/class_folder/class_datastore.php");
require_once("../shared/class_folder/class_sql.php");
require_once("../shared/class_folder/class_sigesp_int.php");
require_once("../shared/class_folder/class_sigesp_int_scg.php");
$in=new sigesp_include();
$con=$in->uf_conectar();
$int_scg=new class_sigesp_int_scg();
$msg=new class_mensajes();
$ds=new class_datastore();
$ds_procedencias=new class_datastore();
$SQL=new class_sql($con);
$SQL_cmp=new class_sql($con);
$arr=$_SESSION["la_empresa"];
$as_codemp=$arr["codemp"];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Catalogo de Comprobante de Credito/Ingreso Adicional</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
a:link {
	color: #006699;
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cat_aumento.php

示例14: ue_search

      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><div align="right"><a href="javascript: ue_search();"><img src="../shared/imagebank/tools20/buscar.gif" alt="Buscar" width="20" height="20" border="0"> Buscar</a></div></td>
      </tr>
    </table>
	<br>
    <?php
require_once("../shared/class_folder/sigesp_include.php");
$in=new sigesp_include();
$con=$in->uf_conectar();
require_once("../shared/class_folder/class_mensajes.php");
$msg=new class_mensajes();
require_once("../shared/class_folder/class_sql.php");
$SQL=new class_sql($con);
$ds=new class_datastore();

$ls_codemp=$arr["codemp"];

if(array_key_exists("operacion",$_POST))
{
	$ls_operacion=$_POST["operacion"];
	$ls_codigo="%".$_POST["codigo"]."%";
	$ls_denominacion="%".$_POST["denominacion"]."%";
}
else
{
	$ls_operacion="";

}
print "<table width=500 border=0 cellpadding=1 cellspacing=1 class=fondo-tabla align=center>";
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_cat_bancosdestino.php

示例15: require_once

require_once("sigesp_scb_report.php");
require_once('../../shared/class_folder/class_pdf.php');
require_once("../../shared/class_folder/class_sql.php");
require_once("../../shared/class_folder/class_funciones.php");
require_once("../../shared/class_folder/sigesp_include.php");
require_once("../../shared/class_folder/class_datastore.php");
require_once("../../shared/class_folder/class_numero_a_letra.php");

$io_include   = new sigesp_include();
$ls_conect    = $io_include->uf_conectar();
$io_sql		  = new class_sql($ls_conect);	
$class_report = new sigesp_scb_report($ls_conect);
$io_funciones = new class_funciones();				
$ds_voucher	  = new class_datastore();	
$ds_dt_scg	  = new class_datastore();				
$ds_dt_spg	  = new class_datastore();
$numalet	  = new class_numero_a_letra();

//imprime numero con los valore por defecto
//cambia a minusculas
$numalet->setMayusculas(1);
//cambia a femenino
$numalet->setGenero(1);
//cambia moneda
$numalet->setMoneda("Bolivares");
//cambia prefijo
$numalet->setPrefijo("***");
//cambia sufijo
$numalet->setSufijo("***");

	$ls_codemp = $_SESSION["la_empresa"]["codemp"];
开发者ID:ssolano,项目名称:cafe_sigesp,代码行数:31,代码来源:sigesp_scb_rpp_voucher_redtv.php


注:本文中的class_datastore类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。