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


PHP TRANS函数代码示例

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


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

示例1: testa_user_hidden

 function testa_user_hidden($s_usuario, $s_nivel, $s_nivel_desc, $permissao, $help = '')
 {
     if (!isset($_SESSION['s_logado']) || $_SESSION['s_logado'] == 0) {
         print "<script>window.open('../../index.php','_parent','')</script>";
         exit;
     } else {
         //print "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>";
         if ($help != '') {
             //../../includes/icons/   align='top' //absmiddle  absbottom
             $help = "&nbsp;<a><img align='absmiddle' src='" . ICONS_PATH . "help-16.png' width='16' height='16' border='0' onClick=\"return popupS('" . HELP_PATH . "" . $help . "')\"></a>";
         }
         if ($s_nivel > $permissao) {
             $this->saida = "<script>window.open('../../index.php','_parent','')</script>";
             exit;
         } else {
             if (is_file("./.invmon_dir")) {
                 $this->texto = TRANS('MENU_TTL_MOD_INV');
             } else {
                 if (is_file("./.admin_dir")) {
                     $this->texto = TRANS('MENU_TTL_MOD_ADMIN');
                 } else {
                     $this->texto = TRANS('MENU_TTL_MOD_OCCO');
                 }
             }
             $this->saida = "<TABLE class='header_centro' cellspacing='1' border='0' cellpadding='1' align='center' width='100%'>" . "<TR>" . ($this->saida .= "</TR>" . "</TABLE>");
             $this->saida = "";
         }
         print $this->saida;
     }
 }
开发者ID:JusCes,项目名称:ocomonv3,代码行数:30,代码来源:auth.class.php

示例2: mysql_query

if (isset($_GET['numero']) && $_SESSION['s_nivel'] == 1) {
    $query = "DELETE FROM ocorrencias WHERE numero=" . $_GET['numero'] . "";
    $resultado = mysql_query($query) or die(TRANS('ERR_DEL') . '!<BR>' . $query);
    //$qryAssent = "SELECT * FROM assentamentos WHERE numero = ".$_GET['numero']."";
    $query2 = "DELETE FROM assentamentos WHERE ocorrencia = " . $_GET['numero'] . "";
    $resultado2 = mysql_query($query2) or die(TRANS('ERR_DEL') . '!<BR>' . $query2);
    $query3 = "DELETE FROM tempo_status WHERE ts_ocorrencia = " . $_GET['numero'] . "";
    $resultado3 = mysql_query($query3) or die(TRANS('ERR_DEL') . '!<BR>' . $query3);
    $query4 = "DELETE FROM doc_time WHERE doc_oco = " . $_GET['numero'] . "";
    $resultado4 = mysql_query($query4) or die(TRANS('ERR_DEL') . '!<BR>' . $query4);
    $query5 = "DELETE FROM global_tickets WHERE gt_ticket = " . $_GET['numero'] . "";
    $resultado5 = mysql_query($query5) or die(TRANS('ERR_DEL') . '!<BR>' . $query5);
    $query6 = "DELETE FROM lock_oco WHERE lck_oco = " . $_GET['numero'] . "";
    $resultado6 = mysql_query($query6) or die(TRANS('ERR_DEL') . '!<BR>' . $query6);
    $query7 = "DELETE FROM ocodeps WHERE dep_pai = " . $_GET['numero'] . " OR dep_filho = " . $_GET['numero'] . "";
    $resultado7 = mysql_query($query7) or die(TRANS('ERR_DEL') . '!<BR>' . $query7);
    $query8 = "DELETE FROM solucoes WHERE numero = " . $_GET['numero'] . "";
    $resultado8 = mysql_query($query8) or die(TRANS('ERR_DEL') . '!<BR>' . $query8);
    $query9 = "DELETE FROM imagens WHERE img_oco = " . $_GET['numero'] . "";
    $resultado9 = mysql_query($query9) or die(TRANS('ERR_DEL') . '!<BR>' . $query9);
    if ($resultado == 0 || $resultado2 == 0 || $resultado3 == 0) {
        $aviso = TRANS('ERR_DEL');
    } else {
        $aviso = TRANS('OK_DEL');
    }
    print "<script>mensagem('" . $aviso . "'); redirect('ocorrencias.php');</script>";
} else {
    //print "<script>mensagem('".$aviso."'); redirect('ocorrencias.php');</script>";
}
print "</body>";
print "</html>";
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:excluir_ocorrencia.php

示例3: TRANS

    // 				if (isset($row) && $rowResol['resol_cod'] == $row['resolucao_cod'])
    // 					print " selected";
    print ">" . $rowResol['resol_nome'] . "</option>";
}
print "<option value=null>" . TRANS('cmb_selec_nenhum') . "</option>";
print "</SELECT>";
print "</TD>";
print "</tr>";
print "<TR>";
print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "'><b>" . TRANS('COL_SUBSCRIBE_DATE') . ":</b></TD>";
print "<TD width='30%' align='left' bgcolor='" . BODY_COLOR . "'>" . datab($hoje) . "</TD>";
print "</TR>";
print "<TR>";
print "<TD colspan='2'  align='right' bgcolor='" . BODY_COLOR . "'><input type='submit' value='" . TRANS('bt_cadastrar') . "' name='submit' " . "class='button' title='Cadastrar as informações fornecidas.'>";
print "</TD>";
print "<TD colspan='2' align='right' bgcolor='" . BODY_COLOR . "'><INPUT type='reset' value='" . TRANS('bt_cancelar') . "' " . "class='button' onClick='javascript:history.back()'></TD>";
print "</TR>";
print "</TABLE>";
print "</FORM>";
?>
<script type="text/javascript">
<!--
	function valida(){

		var ok = validaForm('idTipo','COMBO','Tipo de equipamento',1);
		if (ok) var ok = validaForm('idFab','COMBO','Fabricante',1);
		if (ok) var ok = validaForm('idModelo','COMBO','Modelo',1);

		return ok;
	}
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:30,代码来源:incluir_molde.php

示例4: popup_alerta

<script type='text/javascript'>

	function popup_alerta(pagina)	{ //Exibe uma janela popUP
		x = window.open(pagina,'_blank','width=700,height=470,scrollbars=yes,statusbar=no,resizable=yes');
		x.moveTo(window.parent.screenX+50, window.parent.screenY+50);
		return false
	}
</script>
<?php 
print "<HTML><head><title>" . TRANS('TTL_TIMES_DOCUMENT') . "</title>";
include 'includes/header.php';
print "</head>";
print "<BODY bgcolor='" . BODY_COLOR . "'>";
$auth = new auth();
$auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 4);
$sql = "select d.*, u.* from doc_time d, usuarios u where d.doc_user = u.user_id and doc_oco = " . $_GET['cod'] . " ";
$exec_sql = mysql_query($sql);
$total = 0;
$totalGeral = 0;
print "<br><b>" . TRANS('TTL_TIMES_DOCUMENT_OCCO') . " <font color='red'>" . $_GET['cod'] . "</font>:</b><br>";
print "<table cellspacing='0' border='1' cellpadding='1' align='left' width='100%'>";
print "<tr><td width='20%'><b>" . TRANS('OCO_FIELD_OPERATOR') . "</b></td><td width='20%'><b>" . TRANS('OCO_SEL_OPEN') . "</b></td><td width='20%'><b>" . TRANS('COL_EDITION') . "</b></td><td width='20%'><b>" . TRANS('COL_CLOSING') . "</b></td><td width='20%'><b>" . TRANS('TOTAL') . "</b></td></tr>";
while ($row = mysql_fetch_array($exec_sql)) {
    $total = $row['doc_open'] + $row['doc_edit'] + $row['doc_close'];
    print "<tr><td width='20%'>" . $row['nome'] . "</td><td width='20%'>" . segundos_em_horas($row['doc_open']) . "</td><td width='20%'>" . segundos_em_horas($row['doc_edit']) . "</td><td width='20%'>" . segundos_em_horas($row['doc_close']) . "</td><td width='20%'>" . segundos_em_horas($total) . "</td></tr>";
    $totalGeral += $total;
}
print "<tr><td colspan='4'><b>" . TRANS('COL_TIME_TOTAL_DOC') . "</b></td><td class='line'><b>" . segundos_em_horas($totalGeral) . "</b></td></tr>";
print "</table>";
print "</body>";
print "</html>";
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:31,代码来源:tempo_doc.php

示例5: session_start

         OCOMON is distributed in the hope that it will be useful,
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
         GNU General Public License for more details.

         You should have received a copy of the GNU General Public License
         along with Foobar; if not, write to the Free Software
         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
session_start();
include "../../includes/include_geral.inc.php";
include "../../includes/include_geral_II.inc.php";
include 'includes/header.php';
$_SESSION['s_page_invmon'] = $_SERVER['PHP_SELF'];
$cab = new headers();
$cab->set_title(TRANS("html_title"));
$auth = new auth();
$auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 2);
$hoje = date("Y-m-d H:i:s");
$cor = TD_COLOR;
$cor1 = TD_COLOR;
$cor3 = BODY_COLOR;
$queryB = "SELECT count(*) from equipamentos";
$resultadoB = mysql_query($queryB);
$total = mysql_result($resultadoB, 0);
// Select para retornar a quantidade e percentual de equipamentos cadastrados no sistema
$query = "SELECT count( l.loc_reitoria )  AS qtd, count(  *  )  / " . $total . " * 100 AS porcento,\n\t\t\t\tl.loc_reitoria AS cod_reitoria, l.loc_id AS tipo_local, t.tipo_nome AS equipamento,\n\t\t\t\tt.tipo_cod AS tipo, r.reit_nome AS reitoria FROM equipamentos AS c, tipo_equip AS t,\n\t\t\t\tlocalizacao AS l, reitorias AS r WHERE c.comp_tipo_equip = t.tipo_cod AND\n\t\t\t\tc.comp_local = l.loc_id AND l.loc_reitoria = r.reit_cod GROUP  BY l.loc_reitoria, equipamento\n\t\t\t\tORDER  BY reitoria, qtd DESC";
$resultado = mysql_query($query);
$linhas = mysql_num_rows($resultado);
print "<TABLE border='0' cellpadding='5' cellspacing='0' align='center' width='80%' bgcolor='" . $cor3 . "'>";
print "<tr><td class='line'></TD></tr>";
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:31,代码来源:estat_equipporreitoria.php

示例6: session_start

<HTML>
   <HEAD>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   </HEAD>
</HTML>

<?php 
session_start();
include "../../includes/include_geral.inc.php";
include "../../includes/include_geral_II.inc.php";
include "../../includes/classes/lock.class.php";
$queryA = "INSERT INTO assentamentos (ocorrencia, assentamento, data, responsavel, asset_privated)" . " values (" . $_GET['num'] . ",";
$queryA .= " '" . $_GET['registro'] . "',";
$queryA .= " '" . date('Y-m-d H:i:s') . "', " . $_GET['resp'] . ", " . $_GET['privado'] . ")";
$resultado3 = mysql_query($queryA) or die(TRANS('MSG_NOT_SAVE_INFO_EDIT_CALL') . '<br>' . $queryA);
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:15,代码来源:inserir_assentamentos.php

示例7: TRANS

print "<TABLE border='0'  width='40%' bgcolor='" . BODY_COLOR . "'>";
print "<TR>";
print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "'>" . TRANS('OCO_FIELD_UNIT') . ":</font></font></TD>";
print "<TD width='30%' align='left' bgcolor='" . BODY_COLOR . "'>";
print "<SELECT class='select' name='comp_inst'>";
$query = "SELECT * from instituicao  order by inst_nome";
$resultado = mysql_query($query);
$linhas = mysql_numrows($resultado);
while ($row = mysql_fetch_array($resultado)) {
    print "<option value='" . $row['inst_cod'] . "'>" . $row['inst_nome'] . "</option>";
}
print "</SELECT>";
print "</TD>";
print "</tr>";
print "<TR>";
print "<TD width='20%' align='left' bgcolor='" . TD_COLOR . "'>" . TRANS('OCO_FIELD_TAG') . ":</font></font></TD>";
print "<TD width='30%' align='left' bgcolor='" . BODY_COLOR . "'>" . "<INPUT type='text' class='text' name='comp_inv' id='idComp_inv'>" . "</TD>";
print "</TR>";
NL(2);
print "<TR>";
if (isset($_GET['from_menu'])) {
    print "<input type='hidden' name='from_menu' value='1'>";
}
print "<TD align='center' bgcolor='" . BODY_COLOR . "'><input type='submit' class='button' value='" . TRANS('MNL_CON') . "' name='ok'>";
print "</TD>";
print "<TD align='center' bgcolor='" . BODY_COLOR . "'>" . "<INPUT type='reset' class='button' value='" . TRANS('BT_CANCEL') . "' onClick='javascript:history.back()'></TD>";
print "</TR>";
print "</table>";
print "</form>";
print "</body>";
print "</html>";
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:consulta_hist_inv.php

示例8: TRANS

} else {
    print "<TR class='header'><td class='line'><B>" . TRANS('TXT_OCCO_ONLY_FOUND') . "</B></TD></TR>";
}
//print "</TD>";
//print "<td class='line'>";
print "<TABLE border='0' cellpadding='5' cellspacing='0' align='center' width='100%'>";
print "<TR class='header'><td class='line'>" . TRANS('COL_NUMBER') . "</TD><td class='line'>" . TRANS('COL_PROB') . "</TD><td class='line'>" . TRANS('COL_LOCAL') . "</TD><td class='line'>" . TRANS('COL_OPERATOR') . "</TD>\n                <td class='line'>" . TRANS('COL_OPEN') . "</TD><td class='line'>" . TRANS('COL_STATUS') . "</TD><td class='line'>" . TRANS('COL_EDIT') . "</TD><td class='line'>" . TRANS('COL_DEL') . "</TD></TR>";
$i = 0;
$j = 2;
while ($row = mysql_fetch_array($resultado)) {
    if ($j % 2) {
        $trClass = "lin_par";
    } else {
        $trClass = "lin_impar";
    }
    $j++;
    print "<tr class=" . $trClass . " id='linhax" . $j . "' onMouseOver=\"destaca('linhax" . $j . "','" . $_SESSION['s_colorDestaca'] . "');\" onMouseOut=\"libera('linhax" . $j . "','" . $_SESSION['s_colorLinPar'] . "','" . $_SESSION['s_colorLinImpar'] . "');\"  onMouseDown=\"marca('linhax" . $j . "','" . $_SESSION['s_colorMarca'] . "');\">";
    print "<td class='line'><a href='mostra_consulta.php?numero=" . $row['numero'] . "'>" . $row['numero'] . "</a></TD>";
    print "<td class='line'>" . $row['problema'] . "</TD>";
    print "<td class='line'>" . $row['setor'] . "</TD>";
    print "<td class='line'>" . $row['nome'] . "</TD>";
    print "<td class='line'>" . datab($row['data_abertura']) . "</TD>";
    print "<td class='line'>" . $row['chamado_status'] . "</TD>";
    print "<td class='line'><a onClick=\"redirect('altera_dados_ocorrencia.php?numero=" . $row['numero'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "edit.png' title='" . TRANS('HNT_EDIT') . "'></a></TD>";
    print "<td class='line'><a onClick=\"confirma('" . TRANS('MSG_DEL_OCCO_SYSTEM') . "','excluir_ocorrencia.php?numero=" . $row['numero'] . "')\"><img height='16' width='16' src='" . ICONS_PATH . "drop.png' title='" . TRANS('HNT_DEL') . "'></a></TD>";
    print "</TR>";
    $i++;
}
print "</table>";
print "</BODY>";
print "</HTML>";
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:ocorrencias.php

示例9: TRANS

		if (ok) var ok = validaForm('idLocal','COMBO','Local',1);
		if (ok) var ok = validaForm('idData_fechamento','DATAHORA','Data',1);
		if (ok) var ok = validaForm('idDesc','','Descrição técnica',1);
		if (ok) var ok = validaForm('idSolucao','','Solução',1);
		
		if (ok) {
			var justification = document.getElementById('idJustificativa');
			if (justification != null){
				if (ok) var ok = validaForm('idJustificativa','','Justificativa',1);
				if (ok) {
					if(justification.value.length <= <?php 
print $descricaoMinima;
?>
) {
						alert('<?php 
print TRANS('ALERT_TOO_SHORT_JUSTIFICATION');
?>
');
						ok = false;
						document.form1.justificativa.focus();
					}
				}
			}
		}		
		

		return ok;
	}

	function popup_alerta(pagina)	{ //Exibe uma janela popUP
      		x = window.open(pagina,'Alerta','dependent=yes,width=700,height=470,scrollbars=yes,statusbar=no,resizable=yes');
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:encerramento.php

示例10: valida

print "</form>";
?>
	<script language="JavaScript">

		function valida(){
			var ok = false;

			var ok = validaForm('idSigla','','<?php 
print TRANS('TPL_SIGLA');
?>
',1);
			if (ok) var ok = validaForm('idMlDesc','','<?php 
print TRANS('ML_DESC');
?>
',1);
			if (ok) var ok = validaForm('idMlList','MULTIEMAIL','<?php 
print TRANS('ML_ADDRESS_TO');
?>
',1);
			if (ok) var ok = validaForm('idMlListCc','MULTIEMAIL','<?php 
print TRANS('ML_ADDRESS_CC');
?>
',1);

			return ok;
		}
	//-->
	</script>
	<?php 
print "</body>";
print "</html>";
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:31,代码来源:mail_distribution_lists.php

示例11: auth

         OCOMON is distributed in the hope that it will be useful,
         but WITHOUT ANY WARRANTY; without even the implied warranty of
         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
         GNU General Public License for more details.

         You should have received a copy of the GNU General Public License
         along with Foobar; if not, write to the Free Software
         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
include "../../includes/include_geral.inc.php";
include "../../includes/include_geral_II.inc.php";
print "<HTML>";
print "<BODY bgcolor='" . BODY_COLOR . "'>";
$auth = new auth();
$auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 2);
print "<BR><B>" . TRANS('OCO_REPORT_FULL', 'Relatório de Ocorrências') . "</B><BR>";
print "<FORM method='POST' name='form1' action='mostra_resultado_relatorio_total.php'>";
print "<TABLE border='0'  align='center' width='100%'>";
?>
        <TR>
                <TD width="20%" align="left" bgcolor=<?php 
print TD_COLOR;
?>
>Número inicial:</TD>
                <TD width="30%" align="left" bgcolor=<?php 
print BODY_COLOR;
?>
><INPUT type="text" name="numero_inicial" class='data'></TD>
                <TD width="20%" align="left" bgcolor=<?php 
print TD_COLOR;
?>
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:relatorio_total.php

示例12: mysql_num_rows

 //$rowPainel = mysql_fetch_array($resultado2);
 $linhas = mysql_num_rows($resultado);
 if ($linhas == 0) {
     print "<script>window.alert('" . TRANS('MSG_NO_REGISTER_PERIOD') . "'); history.back();</script>";
 } else {
     //if($linhas==0)
     $campos = array();
     $saida = -1;
     switch ($saida) {
         case -1:
             $criterio = "<br>";
             $background = '#C7D0D9';
             print "<table class='centro' cellspacing='0' border='0' width='90%'>";
             print "<tr bgcolor='" . TD_COLOR . "'>" . "<td class='line'><b><a title='" . TRANS('HNT_RESPONSE_TIME') . "'>" . TRANS('OCO_RESPONSE') . "</a></td>";
             print "<td class='line'><b><a title='" . TRANS('HNT_SOLUTION_TIME') . "'>" . TRANS('OCO_SOLUC') . "</a></td></B>";
             print "<td class='line'><b><a title='tempo definido para resposta para cada setor'>" . TRANS('COL_TIT_SLA_RESP') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='tempo definido para solução para cada problema'>" . TRANS('COL_TIT_SLA_SOL') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='indicador de resposta'>" . TRANS('COL_TIT_REPLY') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='indicador de solução'>" . TRANS('COL_TIT_SOLUTION') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='indicador de solução a partir da primeira resposta'>" . TRANS('COL_SOL_RESP') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='tempo em que o chamado esteve pendente no usuário'>" . TRANS('COL_USER_DEPEN') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='tempo em que o chamado esteve pendente por algum serviço de terceiros'>" . TRANS('COL_DEPEN_THIRD') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='tempo em equipamento de backup ou alterado após encerramento'>" . TRANS('COL_IT_ARRE_DEPEN') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='Tempo de solução menos o tempo em pendência do usuário'>" . TRANS('COL_RECALC_SOLUTION') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='indicador atualizado descontando a pendência do usuário'>" . TRANS('COL_POINTER_UPDATE') . "</a></td></B>\n\t\t\t\t\t<td class='line'><b><a title='" . TRANS('HNT_REMAIN_TIME_IN_SLA') . "'>" . TRANS('COL_REMAIN_TIME') . "</a></td></B>\n\t\t\t\t\t</tr>";
             //INICIALIZANDO CONTADORES!!
             $sla_green = 0;
             $sla_red = 0;
             $sla_yellow = 0;
             $slaR_green = 0;
             $slaR_red = 0;
             $slaR_yellow = 0;
             $c_slaS_blue = 0;
             $c_slaS_yellow = 0;
             $c_slaS_red = 0;
             $c_slaR_blue = 0;
             $c_slaR_yellow = 0;
             $c_slaR_red = 0;
             $c_slaM_blue = 0;
             $c_slaM_yellow = 0;
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:31,代码来源:sla_standalone.php

示例13: session_start

         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
         GNU General Public License for more details.

         You should have received a copy of the GNU General Public License
         along with Foobar; if not, write to the Free Software
         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
session_start();
include "../../includes/include_geral.inc.php";
include "../../includes/include_geral_II.inc.php";
print "<HTML>";
print "<BODY bgcolor='" . BODY_COLOR . "'>";
$auth = new auth();
$auth->testa_user($_SESSION['s_usuario'], $_SESSION['s_nivel'], $_SESSION['s_nivel_desc'], 1);
print "<br><br>";
print TRANS('MSG_UPDATE_PRIOR');
print "<br><br>";
$qry = "SELECT * FROM prior_atend WHERE pr_default = 1";
$exec = mysql_query($qry) or die('ERRO NA TENTATIVA DE BUSCAR AS INFORMAÇÕES DA PRIORIDADE PADRÃO!');
if (mysql_numrows($exec) == 0) {
    print "<b><font color='red'>" . TRANS('DEFAULT_PRIOR_NOT_DEFINED') . "</font></b>";
    exit;
}
$row = mysql_fetch_array($exec);
//exit;
$qry_update = "UPDATE ocorrencias SET oco_prior = '" . $row['pr_cod'] . "' WHERE oco_prior is null ";
$exec_update = mysql_query($qry_update) or die('OCORREU UM ERRO NA TENTATIVA DE ATUALIZAR A PRIORIDADE PADRÃO DAS OCORRÊNCIAS!');
print "<br><br>";
print "<b><font color='green'>" . TRANS('MSG_UPDATE_PRIOR_OK') . "</font></b>";
print "</body>";
print "</html>";
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:update_old_tickets_prior.php

示例14: mysql_query

$selProb = 0;
if (isset($_GET['prob']) && !isset($_GET['radio_prob'])) {
    $selProb = $_GET['prob'];
} else {
    if (isset($_GET['prob']) && isset($_GET['radio_prob'])) {
        $selProb = $_GET['radio_prob'];
    }
}
$qry_problema = "SELECT p.prob_descricao, sc.*, script.* FROM problemas as p " . "LEFT JOIN prob_x_script as sc on sc.prscpt_prob_id = p.prob_id " . "LEFT JOIN scripts as script on script.scpt_id = sc.prscpt_scpt_id " . "WHERE p.prob_id = " . $selProb . " ";
$exec_problema = mysql_query($qry_problema) or die($qry_problema);
$row_problema = mysql_fetch_array($exec_problema);
if (mysql_num_rows($exec_problema) == 0) {
    print "<div></div>";
} else {
    if (!empty($row_problema['prscpt_prob_id']) && ($_SESSION['s_nivel'] != 3 || $row_problema['scpt_enduser'] == 1)) {
        $script = "<a onClick=\"popup('../../admin/geral/scripts.php?action=popup&prob=" . $selProb . "')\"><br /><b><font color='green'>" . TRANS('TIPS') . "</font></b></a>";
    } else {
        $script = "";
    }
    if (!empty($row_problema['prob_descricao']) or !empty($script)) {
        ?>
						<TABLE border='0' cellpadding='2' cellspacing='0' width='90%'>
							<TR>
								<TD>
									<div style='{
										margin-left: auto; margin-right: auto; margin-top: 10px; margin-bottom: 10px; 
										padding: 5px; width: 90%; border: 1px solid black; background-color: <?php 
        print $_SESSION['s_colorMarca'];
        ?>
;
										line-height: 150%;
开发者ID:JusCes,项目名称:ocomonv3,代码行数:31,代码来源:showInformacaoProb.php

示例15: TRANS

        print "</table>";
        print "<tr><p><TD bgcolor='" . $cor1 . "'><b>" . TRANS('COL_TYPE') . ":\t</b>" . $rowA['item_nome'] . "</TD></tr><br>";
        print "<tr><TD bgcolor='" . $cor1 . "'><b>" . TRANS('COL_MODEL') . ":\t</b>" . $rowA['mdit_fabricante'] . "&nbsp;" . $rowA['mdit_desc'] . "&nbsp;" . $rowA['mdit_desc_capacidade'] . "&nbsp;" . $rowA['mdit_sufixo'] . "</TD></tr><br>";
        print "<tr><TD bgcolor='" . $cor1 . "'><b>" . TRANS('COL_SN') . ":</b>\t" . $rowA['estoq_sn'] . "</TD></tr><br></p>";
    } else {
        $texto = TRANS('OCO_LOCAL');
        print "<TR><TD bgcolor='" . $cor1 . "'><B>" . TRANS('TXT_FOUND_ONLY_ONE_REG_OF_LOCALIZATION_FOR_EQUIP') . "</B></TD></TR>";
        print "<tr><p><TD bgcolor='" . $cor1 . "'><b>" . TRANS('COL_TYPE') . ":\t</b>" . $rowA['item_nome'] . "</TD></tr><br>";
        print "<tr><TD bgcolor='" . $cor1 . "'><b>" . TRANS('COL_MODEL') . ":\t</b>" . $rowA['mdit_fabricante'] . "&nbsp;" . $rowA['mdit_desc'] . "&nbsp;" . $rowA['mdit_desc_capacidade'] . "&nbsp;" . $rowA['mdit_sufixo'] . "</TD></tr><br>";
        print "<tr><TD bgcolor='" . $cor1 . "'><b>" . TRANS('COL_SN') . ":</b>\t" . $rowA['estoq_sn'] . "</TD></tr><br></p>";
    }
}
print "</TD>";
print "<td class='line'>";
print "<TABLE border='0' cellpadding='5' cellspacing='0' align='left' width='100%'>";
print "<TR class='header'><td class='line'><b>" . $texto . "</TD><TD class='line'>" . TRANS('ASSOC_EQUIP_PIECES') . "</TD>" . "<TD class='line'>" . TRANS('COL_MODIF_IN') . "</TD><td class='line'><b>" . TRANS('COL_MODIF_FOR') . "</TD>" . "<td class='line'>" . TRANS('TECHNICIAN') . "</td> ";
$i = 0;
$j = 2;
//	while ($row = mysql_fetch_array($resultado2)) {
//if ($i==0) {
//$atualmente = "<font ".$alerta.">[".TRANS('TXT_CURRENT_PLACE')."]</font>";  //Perfumaria: Serve para identificar para o usuário o local atual onde o equipamento está!!!
//} else
//$atualmente = '';
//		print "<tr class=".$trClass." id='linhax".$j."' onMouseOver=\"destaca('linhax".$j."','".$_SESSION['s_colorDestaca']."');\" onMouseOut=\"libera('linhax".$j."','".$_SESSION['s_colorLinPar']."','".$_SESSION['s_colorLinImpar']."');\"  onMouseDown=\"marca('linhax".$j."','".$_SESSION['s_colorMarca']."');\">";
//		print "<td class='line'><a ".$alerta." onClick= \"javascript: window.opener.location.href='mostra_consulta_comp.php?comp_local=".$row['local_cod']."&comp_tipo_equip=".$row['tipo']."&ordena=fab_nome,modelo,local,etiqueta'\">".$row['locais']." </a><b><font color='green'>".$atualmente."</font></b></td>";
//		print "<td class='line'><font ".$alerta.">".$row['DIA']."/".$row['MES']."/".$row['ANO']."</font></td>";
//              print "</TR>";
//}
$j = 2;
while ($row = mysql_fetch_array($resultado2)) {
    if ($j % 2) {
开发者ID:GeorgeAlexandre,项目名称:yipservicedesk,代码行数:31,代码来源:piece_hist.php


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