本文整理汇总了PHP中Pdf::setPageOrientation方法的典型用法代码示例。如果您正苦于以下问题:PHP Pdf::setPageOrientation方法的具体用法?PHP Pdf::setPageOrientation怎么用?PHP Pdf::setPageOrientation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pdf
的用法示例。
在下文中一共展示了Pdf::setPageOrientation方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ticketPdf
public function ticketPdf()
{
$ticket = $this->input->get("ticket");
$pdf = new Pdf('L', 'mm', 'A4', true, 'UTF-8', false);
$pdf->setPageOrientation('p');
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
//$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setFontSubsetting(true);
$pdf->SetFont('times', '', 12, '', true);
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$pdf->AddPage();
$html = null;
$buscarTicket = $this->ticket_model->buscarTicket($ticket);
$buscarTicketSector = $this->ticket_model->buscarTicketSector($ticket);
if ($buscarTicket) {
foreach ($buscarTicket as $fila1) {
$html = '';
$html .= "<style type=text/css>";
$html .= "td{ color: #222}";
$html .= "</style>";
$html .= '<table border="0">
<tr colspan="6">
<td colspan="2" align="left"><img alt="Imagen" src="imagen/logo/logoborde.png" width="220" heigth="90"/></td>
<td colspan="2" ><br></td>
<td colspan="2"><p align="right"><b>República Bolivariana de Venezuela<br>Gobernación del Estado Lara</b></p></td>
</tr><br>
<tr colspan="6">
<td colspan="6" align="right"><b>Ticket: ' . $fila1->codigo . '</b></td><br>
</tr>
<tr colspan="6">
<td colspan="6" align="right"><b>Barquisimeto, ' . $fila1->fecha . '</b></td>
</tr><br>
<tr colspan="6">
<td colspan="6" align="center"><b>REQUERIMIENTO</b></td>
</tr>
</table><br>
<table border="1">
<tr colspan="6">
<td colspan="2" bgColor="#DCDCDC"><p align="center"><b>Solicitante:</b></p></td>
<td colspan="4"><p align="center">' . $fila1->solicitante . '</p></td><br>
</tr>
<tr colspan="6">
<td colspan="2" bgColor="#DCDCDC"><p align="center"><b>Tipo de requerimiento:</b></p></td>
<td colspan="4"><p align="center">' . $fila1->nombretipo . '</p></td><br>
</tr>
</table><br>';
if ($fila1->tipoticket == 3) {
$html .= '
<table border="1">
<tr colspan="8">
<td colspan="8" bgColor="#DCDCDC"><p align="center"><b>DESCRIPCIÓN REQUERIMIENTO.-</b></p></td>
</tr>
<tr colspan="8">
<td colspan="3" bgColor="#DCDCDC"><p align="center"><b>Tipo de ayuda</b></p></td>
<td colspan="3" bgColor="#DCDCDC"><p align="center"><b>Descripción</b></p></td>
<td colspan="2" bgColor="#DCDCDC"><p align="center"><b>Cantidad</b></p></td>
</tr>';
foreach ($buscarTicketSector as $fila2) {
$variable = $fila2->nombresector;
$html .= '<tr colspan="8">
<td colspan="3"><p align="center">' . $fila2->ayudaticket . '</p></td>
<td colspan="3"><p align="center">' . $fila2->descripcion . '</p></td>
<td colspan="2"><p align="center">' . $fila2->cantidad . '</p></td>
</tr>';
}
$html .= '<tr colspan="8">
<td colspan="8" bgColor="#DCDCDC"><p align="center">SECTOR RELACIONADO AL REQUERIMIENTO: ' . $variable . '</p></td><br>
</tr>
</table>';
} else {
$html .= '<table border="1">
<tr colspan="6">
<td colspan="6" bgColor="#DCDCDC"><p align="center">SECTOR RELACIONADO AL REQUERIMIENTO: ' . $fila1->nombresector . '</p></td><br>
</tr>
<tr colspan="6">
<td colspan="6" bgColor="#DCDCDC"><p align="center">DESCRIPCIÓN REQUERIMIENTO.-</p></td><br>
</tr>
<tr colspan="6">
<td colspan="6"><p align="justify">' . $fila1->descripcion . '</p></td><br>
</tr>
</table>';
}
}
} else {
$pdf->SetFont('Times', 'B', 18);
$pdf->Text(5, 25, 'No se encuentra Documento con las características indicadas.');
}
$nombre_archivo = utf8_decode("ticket.pdf");
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'C', $autopadding = true);
$pdf->Output($nombre_archivo, 'I');
}
示例2: reporteEstatusPdf
public function reporteEstatusPdf()
{
$pdf = new Pdf('L', 'mm', 'A4', true, 'UTF-8', false);
$pdf->setPageOrientation('p');
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
//$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setFontSubsetting(true);
$pdf->SetFont('times', '', 12, '', true);
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$pdf->AddPage();
$html = null;
$reporteEstatus = $this->reporteticket_model->reporteEstatusPDF();
if ($reporteEstatus) {
$pdf->Image("imagen/logo/logoborde.png", $x = 5, $y = 5, $w = 70, $h = 40, $type = '', $link = '', $align = 'right', $resize = false, $dpi = 300, $palign = '', $ismask = false, $imgmask = false, $border = 0, $fitbox = false, $hidden = false, $fitonpage = false, $alt = false, $altimgs = array());
$pdf->Text(120, 15, "República Bolivariana de Venezuela", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
$pdf->Text(120, 20, "Gobernación del Estado Lara", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
$pdf->Text(120, 25, "Oficina de Atención al Ciudadano.", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
$pdf->SetFont('Times', 'B', 12);
$pdf->Text(60, 50, 'Reporte estadistico del estatus de los Ticket registrados.');
foreach ($reporteEstatus->result_array() as $fila) {
$arregloDatos[] = array('estatus' => $fila['estatus'], 'contador' => $fila['contador']);
}
$pdf->Ln(10);
$pdf->SetFillColor('150', '210', '255');
$pdf->Cell(0, 0, 'Cuadro Resumen', 1, 1, 'C', 1);
$pdf->Cell(75, 0, 'Tipo ticket', 1, 0, 'C', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$pdf->Cell(75, 0, 'Sector relacionado', 1, 0, 'C', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$pdf->Cell(30, 0, 'Cantidad', 1, 1, 'C', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$reporteCuadro = $this->reporteticket_model->reporteEstatusCuadroPDF();
foreach ($reporteCuadro as $fila2) {
$pdf->Cell(75, 0, $fila2->tipo, 1, 0, 'C', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$pdf->Cell(75, 0, $fila2->sector, 1, 0, 'C', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$pdf->Cell(30, 0, $fila2->cantidad, 1, 1, 'C', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$total = $fila2->total;
}
$pdf->Cell(150, 0, 'Total de ticket', 1, 0, 'R', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M');
$pdf->Cell(30, 0, $total, 1, 1, 'C', 1);
$pdf->Ln(10);
$pdf->graficoPDF($arregloDatos, 'Grafico', array(60, '', 90, 100), '');
} else {
$pdf->SetFont('Times', 'B', 18);
$pdf->Text(14, 40, 'No se encuentra información con las características indicadas.');
}
$nombre_archivo = utf8_decode("listado.pdf");
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'C', $autopadding = true);
$pdf->Output($nombre_archivo, 'I');
}
示例3: library
function make_pdf($PDF_html, $PDF_name='Ads2Trade_Document', $PDF_Title='Ads2Trade Dcoument', $PDF_Orientation="L")
{
$CI =& get_instance();
$CI->load->library('pdf'); // load library (if not already loaded - CI will handle this check for us though)
// create new PDF document
//$pdf = new TCPDF($PDF_Orientation, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$pdf = new Pdf($PDF_Orientation, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
$html = $PDF_html;
//Make sure orientation is valid i.e. either P or L
if($PDF_Orientation != 'P' && $PDF_Orientation != 'L'){
$PDF_Orientation = 'L'; //default to landscape if invalid value supplied
}
$pdf->setPageOrientation($PDF_Orientation); //custom class seemed to not be picking up orientation in constructor
if($PDF_name == '' or is_null($PDF_name)){
$PDF_name = 'Ads2Trade_Document'; //default to landscape if invalid value supplied
}
// set document information
//$pdf->SetCreator(PDF_CREATOR);
$pdf->SetCreator("Ads2Trade");
$pdf->SetAuthor('Ads2Trade');
$pdf->SetTitle('Ads2Trade Document Title Goes Here');
$pdf->SetSubject('Ads2Trade');
$pdf->SetKeywords('Ads2Trade, PDF, asset, auction, advertising');
// set default header data
$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $PDF_Title, PDF_HEADER_STRING);
// set header and footer fonts
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
// set margins
$pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
// set auto page breaks
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
// set image scale factor
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
// set some language-dependent strings (optional)
if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
require_once(dirname(__FILE__).'/lang/eng.php');
$pdf->setLanguageArray($l);
}
// ---------------------------------------------------------
// set font
$pdf->SetFont('dejavusans', '', 10);
// add a page
$pdf->AddPage();
// create some HTML content
if (is_null($html) or ($html == '')) {
$html = '<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<p>ERROR: No Document Data Supplied</p>
</body>
</html>';
}
// output the HTML content
$pdf->writeHTML($html, true, false, true, false, '');
// reset pointer to the last page
$pdf->lastPage();
// ---------------------------------------------------------
//Close and output PDF document
$pdf->Output($PDF_name.'.pdf', 'I');
}
示例4: generarReporteEventoGeneralSeleccionFecha
public function generarReporteEventoGeneralSeleccionFecha()
{
$fecha = date("Y-m-d", strtotime($this->input->get('fecha')));
$pdf = new Pdf('L', 'mm', 'Legal', true, 'UTF-8', false);
$pdf->setPageOrientation('l');
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
//$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING, array(0, 64, 255), array(0, 64, 128));
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setFontSubsetting(true);
$pdf->SetFont('times', '', 12, '', true);
$pdf->setPrintHeader(false);
$pdf->setPrintFooter(false);
$pdf->AddPage();
$html = null;
$pdf->SetFont('Times', 'B', 14);
$pdf->Image("imagen/logo/bannerprevengo2.png", $x = 5, $y = 5, $w = 290, $h = 40, $type = 'PNG', $link = '', $align = 'right', $resize = false, $dpi = 300, $palign = '', $ismask = false, $imgmask = false, $border = 0, $fitbox = false, $hidden = false, $fitonpage = false, $alt = false, $altimgs = array());
$pdf->SetTextColor('0', '25', '215');
$pdf->Text(130, 12, "República Bolivariana de Venezuela", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
$pdf->Text(130, 17, "Gobernación del Estado Lara", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
$pdf->Text(130, 23, "Oficina de Personal--División de Planificación y Presupuesto.", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
$pdf->SetFont('Times', 'B', 12);
$pdf->SetTextColor('8', '8', '8');
// $pdf->Text(50, 35, 'Reporte General de Eventos.');
// $pdf->Ln(20);
//$pdf->Text(30, 40, 'Fecha:' . date('d-m-Y'), $align = 'rigth');
$pdf->Ln(15);
$pdf->SetFont('times', '', 11, '', true);
$ano = date('Y');
$mesesN = array(1 => "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$mes = $mesesN[date('n')];
$dia = date('d');
$html .= '
<table>
<tr colspan="8">
<td colspan="2"><p align="center"><b></b></p></td>
<td colspan="2" ><p align="center"><b></b></p></td>
<td colspan="2"><p align="center"><b>Barquisimeto, ' . $dia . ' de ' . $mes . ' del ' . $ano . '</b></p></td>
</tr>
</table>';
$html .= "<h1>Reporte General de Eventos con las siguientes caracteristicas: </h1>";
$html .= '
<table border="1">
<tr colspan="1" width="5" heigth="5">
<td colspan="1" bgColor="#429DED"><p align="center"><b> Fecha </b></p></td>
</tr>
<tr colspan="1" width="5" heigth="5">
<td colspan="1" bgColor=""><p align="center"><b> ' . date("Y-m-d", strtotime($this->input->get('fecha'))) . '</b></p></td>
</tr>
</table>';
$condicion = 'evento.fechatope="' . $fecha . '"';
$reporte = $this->evento_model->cargarListaEventoSeleccionPDF($condicion);
$html .= "<H1></h1>";
if ($reporte->num_rows() > 0) {
$html .= '
<table border="1">
<tr colspan="8">
<td colspan="3" bgColor="#429DED"><p align="center"><b>Titulo</b></p></td>
<td colspan="10" bgColor="#429DED"><p align="center"><b>Descripción</b></p></td>
<td colspan="2" bgColor="#429DED"><p align="center"><b>Tipo de Evento</b></p></td>
<td colspan="2" bgColor="#429DED"><p align="center"><b>Sector</b></p></td>
<td colspan="2" bgColor="#429DED"><p align="center"><b>Alcance</b></p></td>
<td colspan="2" bgColor="#429DED"><p align="center"><b>Agente</b></p></td>
<td colspan="2.5" bgColor="#429DED"><p align="center"><b>Estatus</b></p></td>
</tr>';
foreach ($reporte->result_array() as $fila2) {
$html .= '<tr colspan="8">
<td colspan="3"><p align="center">' . $fila2['titulo'] . '</p></td>
<td colspan="10"><p align="center">' . $fila2['descripcion'] . '</p></td>
<td colspan="2"><p align="center">' . $fila2['tipoEv'] . '</p></td>
<td colspan="2"><p align="center">' . $fila2['sector'] . '</p></td>
<td colspan="2"><p align="center">' . $fila2['alcance'] . '</p></td>
<td colspan="2"><p align="center">' . $fila2['agente'] . '</p></td>
<td colspan="2.5"><p align="center">' . $fila2['estatus'] . '</p></td>
</tr>';
}
$html .= '<tr>
<td colspan="21"><p align="right"> Cantidad de Eventos: </p></td>
<td colspan="2"><p align="center">' . $reporte->num_rows() . '</p></td>
</tr>
</table>';
} else {
$html .= '<h1>No se encuentra eventos registrados para la fecha seleccionada.</h1>';
}
$nombre_archivo = utf8_decode("reporteEventos.pdf");
$pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'C', $autopadding = true);
$pdf->Output($nombre_archivo, 'I');
}
示例5: generarReporteActividadEvento
public function generarReporteActividadEvento()
{
$idEvento = $this->input->get('idEv');
$html = null;
$pdf = new Pdf('L', 'mm', 'Legal', true, 'UTF-8', false);
$pdf->setPageOrientation('l');
$pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
$pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
$pdf->setHeaderMargin(2);
$pdf->SetHeaderData('bannerprevengo4.png', 270, 'Gobernacion de Lara', 'Oficina de Personal--División de Planificación y Presupuesto', array(0, 64, 255), array(0, 64, 128));
$pdf->setFooterMargin(12);
$pdf->setFooterData();
$pdf->SetAlpha(1, 'Normal');
$pdf->Image('imagen/logo/degradado.PNG', 30, 54, 100, 104, '', '', 'N', '', '', 'C');
// recuperamos la opacidad por defecto
$pdf->SetAlpha(1, 'Normal');
$pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
$pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
$pdf->setFontSubsetting(true);
$pdf->SetFont('times', '', 12, '', true);
$pdf->SetFont('Times', 'B', 12);
$pdf->setPrintHeader(true);
$pdf->setPrintFooter(true);
$pdf->AddPage();
$pdf->SetTextColor('8', '8', '8');
$pdf->Ln(10);
$pdf->SetFont('times', '', 11, '', true);
$ano = date('Y');
$mesesN = array(1 => "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
$mes = $mesesN[date('n')];
$dia = date('d');
$html .= '
<table>
<tr colspan="8">
<td colspan="8"><p align="rigth"><b>Barquisimeto, ' . $dia . ' de ' . $mes . ' del ' . $ano . '</b></p></td>
</tr>
</table>';
$html .= "<h1>Reporte General de Metas alcanzada para las actividades</h1>";
$condicion = 'evento.id=' . $idEvento;
$reporte = $this->evento_model->cargarListaEventoSeleccionPDF($condicion);
if ($reporte->num_rows > 0) {
foreach ($reporte->result_array() as $fila2) {
$html .= '
<table border="1">
<tr colspan="4">
<td colspan="4" bgColor="#429DED"><p align="center"><b>Evento</b></p></td>
</tr>
<tr colspan="4">
<td colspan="1" bgColor="#429DED"><p align="center"><b>Titulo</b></p></td>
<td colspan="2" bgColor="#429DED"><p align="center"><b>Descripción</b></p></td>
<td colspan="1" bgColor="#429DED"><p align="center"><b>Estatus</b></p></td>
</tr>
<tr colspan="4">
<td colspan="1"><p align="center">' . $fila2['titulo'] . '</p></td>
<td colspan="2"><p align="center">' . $fila2['descripcion'] . '</p></td>
<td colspan="1"><p align="center">' . $fila2['estatus'] . '</p></td>
</tr>';
$reporte2 = $this->actividad_model->cargarMetaPlandeAccionDeEventoPDF($fila2['idEv']);
$html .= '<tr colspan="4">
<td colspan="4" bgColor="#429DED"><p align="center"><b>Plan de Accion</b></p></td>
</tr>';
if ($reporte2->num_rows > 0) {
foreach ($reporte2->result_array() as $fila2) {
$html .= '
<tr colspan="5">
<td colspan="1" bgColor="#00BFFF"><p align="center"><b>Actividad:</b></p></td>
<td colspan="1" bgColor="#00BFFF"><p align="center"><b>Meta Propuesta</b></p></td>
<td colspan="1" bgColor="#00BFFF"><p align="center"><b>Meta Alcanzada</b></p></td>
<td colspan="1" bgColor="#00BFFF"><p align="center"><b>Estatus</b></p></td>
</tr>
<tr colspan="4">
<td colspan="1" ><p align="center">' . $fila2['descripcion'] . '</p></td>
<td colspan="1" ><p align="center">' . $fila2['metap'] . '</p></td>
<td colspan="1" ><p align="center">' . $fila2['metaa'] . '</p></td>
<td colspan="1" ><p align="center">' . $fila2['estatus'] . '</p></td>
</tr>';
}
} else {
$html .= '<tr colspan="4">
<td colspan="4"><p align="center"><b> El evento no tiene plan de accion registrado.</b></p></td>
</tr>';
}
$html .= '</table>';
$html .= '<h1></H1>';
}
} else {
//.........这里部分代码省略.........