コード例 #1
0
ファイル: php.php プロジェクト: sergioflorencio/toucan
 function upload()
 {
     include "config.php";
     $data = file_get_contents($_FILES['my_uploaded_file']['tmp_name']);
     //read the file
     $matriz = explode("\n", $data);
     $tabela = "\n\t\t<div class='box_arquivo_conciliacao'>\n\t\t\t\t<table id='tb_sistema' class='uk-table uk-table-hover uk-table-condensed uk-table-striped uk-text-nowrap uk-panel-box' style='font-size: 11px;max-width: 100%;'>\n\t\t\t\t<th>TRNTYPE</th>\n\t\t\t\t<th>DTPOSTED</th>\n\t\t\t\t<th>TRNAMT</th>\n\t\t\t\t<th>FITID</th>\n\t\t\t\t<th>CHECKNUM</th>\n\t\t\t\t<th class='uk-text-truncate'>MEMO</th>\n\t\t\t\n\t\t\t\t";
     for ($i = 1; $i < count($matriz) - 2; $i++) {
         $valor = $matriz[$i];
         $valor = substr($valor, strpos($valor, '<'), strlen($valor) - strpos($valor, '<'));
         if (strpos($valor, 'BANKID') == 1) {
             $BANKID = str_replace(" ", "", str_replace("<BANKID>", "<td>", $valor));
         }
         if (strpos($valor, 'ACCTID') == 1) {
             $ACCTID = str_replace(" ", "", str_replace("<ACCTID>", "<td>", $valor));
         }
         if (strpos($valor, 'TRNTYPE') == 1) {
             $tabela .= str_replace(" ", "", str_replace("<TRNTYPE>", "<td>", $valor)) . "</td>";
         }
         if (strpos($valor, 'DTPOSTED') == 1) {
             $tabela .= str_replace(" ", "", SubStr(str_replace("<DTPOSTED>", "<td>", $valor), 0, 12)) . "</td>";
         }
         if (strpos($valor, 'TRNAMT') == 1) {
             $tabela .= "<td>" . str_replace(" ", "", str_replace(',', '.', str_replace("<TRNAMT>", "", $valor))) . "</td>";
         }
         if (strpos($valor, 'FITID') == 1) {
             $tabela .= "<td>" . str_replace(" ", "", str_replace("<FITID>", "", $valor)) . "</td>";
         }
         if (strpos($valor, 'CHECKNUM') == 1) {
             $tabela .= "<td>" . str_replace(" ", "", str_replace("<CHECKNUM>", "", $valor)) . "</td>";
         }
         if (strpos($valor, 'MEMO') == 1) {
             $tabela .= "<td>" . str_replace("<MEMO>", "", $valor) . "</td>";
         }
         if (strpos($valor, 'STMTTRN') == 1) {
             $tabela .= "<tr>";
         }
         if (strpos($valor, '/STMTTRN') == 1) {
             $tabela .= "</tr>";
         }
     }
     $tabela .= "</table></div>";
     echo "<h3>Conta: " . $BANKID . " - " . $ACCTID . "</h3>";
     echo $tabela;
     $selects = new selects();
     $selects->select_carteiras2('carteira');
     echo "<div class='uk-form-row'><button onclick='gravar_arquivo_conciliacao();' class='uk-button uk-button-small'><i class='uk-icon-save'></i> Gravar</button></div>";
 }
コード例 #2
0
        $button->recibos();
        ?>

					</div>


					

					<div id="div_baixa_em_lote" class="uk-modal">
						<div class="uk-modal-dialog">
							<a class="uk-modal-close uk-close"></a>
							<div class="uk-grid uk-form">
								<div class="uk-width-2-3">
									<?php 
        $selects = new selects();
        $selects->select_carteiras2('cod_carteira_baixa_lote');
        ?>
								</div>
								<div class="uk-width-1-3" style="padding-top: 10px;">
									<?php 
        $inputs = new inputs();
        $inputs->input_form_row('00/00/0000', 'data_baixa_lote', 'Data de baixa', '', "placeholder='00/00/0000' onkeyup=javascript:formatar_data(this);");
        ?>
									
								</div>
								<div class="uk-width-1-1" style="padding-top: 10px;">
									<hr class="uk-article-divider" style="margin-bottom: 0px;">								
									<div class="uk-grid" id="" style="height: 300px; overflow-y: scroll;">
									<div class="uk-width-1-1" id="itens_baixa_em_lote">
									</div>
									<table id="itens_baixa_em_lote" class="uk-table uk-table-hover">