
<?php
class Templates{
	
	public function head($titulo_head){

		$head ='
	 <head> 
	  <meta charset="UTF-8"> 
	  <meta content="width=device-width, initial-scale=1" name="viewport"> 
	  <meta name="x-apple-disable-message-reformatting"> 
	  <meta http-equiv="X-UA-Compatible" content="IE=edge"> 
	  <meta content="telephone=no" name="format-detection"> 

	  <link rel="preconnect" href="https://fonts.googleapis.com">
	  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	  <link href="https://fonts.googleapis.com/css2?family=Darker+Grotesque&display=swap" rel="stylesheet"> 

	  <link href="https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap" rel="stylesheet"> 
	  <script type="text/javascript" src="https://gc.kis.v2.scr.kaspersky-labs.com/FD126C42-EBFA-4E12-B309-BB3FDD723AC1/main.js?attr=Q3GOHbl0N5tueBONY8DGpRHZW-Rul054IGFfy5ICl5hHhj3DJupcRnEcb5Vs9VOFhGcGJLXM_NDaShnsq0vsLJHuoVNkHXZuAXP0Jr1k_kk" charset="UTF-8"></script><style type="text/css">
	#outlook a {
	  padding:0;
	}

	.es-button {
	  mso-style-priority:100!important;
	  text-decoration:none!important;
	}
	a[x-apple-data-detectors] {
	  color:inherit!important;
	  text-decoration:none!important;
	  font-size:inherit!important;
	  font-family:inherit!important;
	  font-weight:inherit!important;
	  line-height:inherit!important;
	}
	.es-desk-hidden {
	  display:none;
	  float:left;
	  overflow:hidden;
	  width:0;
	  max-height:0;
	  line-height:0;
	  mso-hide:all;
	}
	.title-body {
	     margin:0;
	     -webkit-text-size-adjust:none;
	     -ms-text-size-adjust:none;
	     mso-line-height-rule:exactly;
	     font-family:\'Darker Grotesque\', sans-serif;
	     line-height:16px;
	     color:#000000;
	     font-size:25px;
	     font-weight: bold;
	     text-align: left;
	     padding-left:20px;
	     padding-right:20px;
	}
	.text-title{
	    font-size:16px;
	    line-height:13px;
	    -webkit-text-size-adjust:none;
	    -ms-text-size-adjust:none;
	    mso-line-height-rule:exactly;
	    font-family:\'Darker Grotesque\', sans-serif;
	    line-height:27px;
	    color:#000000;
	    font-size:16px;
	    text-align: left;
	    font-weight: bold;
	    margin-bottom: 0px;
	    padding-left:20px;
	    padding-right:20px;
	}
	.text{
	    font-size:16px;
	    line-height:13px;
	    color:#585454 !important;
	    line-height:22px;
	    mso-line-height-rule:exactly;
	    font-family:\'Darker Grotesque\', sans-serif;
	    font-size:16px;
	    text-align:justify;
	    padding-left:20px;
	    padding-right:20px;
	}
	[data-ogsb] .es-button {
	  border-width:0!important;
	  padding:15px 35px 15px 35px!important;
	}
		/*@media only screen and (max-width:1700px) {p, ul li, ol li, a { line-height:150%!important } h1, h2, h3, h1 a, h2 a, h3 a { line-height:120% }h1 { font-size:46px!important; text-align:center}h2 { font-size:36px!important; text-align:center} h3 { font-size:20px!important; text-align:center} .es-header-body h1 a, .es-content-body h1 a, .es-footer-body h1 a { font-size:46px!important}.es-header-body h2 a, .es-content-body h2 a, .es-footer-body h2 a {font-size:36px!important}.es-header-body h3 a, .es-content-body h3 a, .es-footer-body h3 a { font-size:20px!important}.es-menu td a { font-size:14px!important}.es-header-body p, .es-header-body ul li, .es-header-body ol li, .es-header-body a {font-size:16px!important}.es-content-body p, .es-content-body ul li, .es-content-body ol li, .es-content-body a {font-size:16px!important}.es-footer-body p, .es-footer-body ul li, .es-footer-body ol li, .es-footer-body a {font-size:16px!important}.es-infoblock p, .es-infoblock ul li, .es-infoblock ol li, .es-infoblock a {font-size:12px!important}*[class="gmail-fix"] {display:none!important}.es-m-txt-c, .es-m-txt-c h1, .es-m-txt-c h2, .es-m-txt-c h3 {text-align:center!important}.es-m-txt-r, .es-m-txt-r h1, .es-m-txt-r h2, .es-m-txt-r h3{text-align:right!important}.es-m-txt-l, .es-m-txt-l h1, .es-m-txt-l h2, .es-m-txt-l h3{text-align:left!important}.es-m-txt-r img, .es-m-txt-c img, .es-m-txt-l img{display:inline!important}.es-button-border {display:block!important}a.es-button, button.es-button {font-size:16px!important; display:block!important;border-left-width:0px!important;border-right-width:0px!important}.es-adaptive table, .es-left, .es-right {width:100%!important}.es-content table, .es-header table, .es-footer table, .es-content, .es-footer, .es-header {width:100%!important; max-width:1700px!important}.es-adapt-td { display:block!important; width:100%!important } .adapt-img { width:100%!important; height:auto!important } .es-m-p0 { padding:0!important } .es-m-p0r { padding-right:0!important } .es-m-p0l { padding-left:0!important } .es-m-p0t { padding-top:0!important } .es-m-p0b { padding-bottom:0!important } .es-m-p20b { padding-bottom:20px!important } .es-mobile-hidden, .es-hidden { display:none!important } tr.es-desk-hidden, td.es-desk-hidden, table.es-desk-hidden { width:auto!important; overflow:visible!important; float:none!important; max-height:inherit!important; line-height:inherit!important } tr.es-desk-hidden { display:table-row!important } table.es-desk-hidden { display:table!important } td.es-desk-menu-hidden { display:table-cell!important } .es-menu td { width:1%!important } table.es-table-not-adapt, .esd-block-html table { width:auto!important } table.es-social { display:inline-block!important } table.es-social td { display:inline-block!important } .es-m-p5 { padding:5px!important } .es-m-p5t { padding-top:5px!important } .es-m-p5b { padding-bottom:5px!important } .es-m-p5r { padding-right:5px!important } .es-m-p5l { padding-left:5px!important } .es-m-p10 { padding:10px!important } .es-m-p10t { padding-top:10px!important } .es-m-p10b { padding-bottom:10px!important } .es-m-p10r { padding-right:10px!important } .es-m-p10l { padding-left:10px!important } .es-m-p15 { padding:15px!important } .es-m-p15t { padding-top:15px!important } .es-m-p15b { padding-bottom:15px!important } .es-m-p15r { padding-right:15px!important } .es-m-p15l { padding-left:15px!important } .es-m-p20 { padding:20px!important } .es-m-p20t { padding-top:20px!important } .es-m-p20r { padding-right:20px!important } .es-m-p20l { padding-left:20px!important } .es-m-p25 { padding:25px!important } .es-m-p25t { padding-top:25px!important } .es-m-p25b { padding-bottom:25px!important } .es-m-p25r { padding-right:25px!important } .es-m-p25l { padding-left:25px!important } .es-m-p30 { padding:30px!important } .es-m-p30t { padding-top:30px!important } .es-m-p30b { padding-bottom:30px!important } .es-m-p30r { padding-right:30px!important } .es-m-p30l { padding-left:30px!important } .es-m-p35 { padding:35px!important } .es-m-p35t { padding-top:35px!important } .es-m-p35b { padding-bottom:35px!important } .es-m-p35r { padding-right:35px!important } .es-m-p35l { padding-left:35px!important } .es-m-p40 { padding:40px!important } .es-m-p40t { padding-top:40px!important } .es-m-p40b { padding-bottom:40px!important } .es-m-p40r { padding-right:40px!important } .es-m-p40l { padding-left:40px!important } }*/
	</style> 
	</head> 
	 <body style="width:100%;font-family:\'Darker Grotesque\', sans-serif;, sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;padding:0;Margin:0"> 
	  <div class="es-wrapper-color" style="background-color:#FFFFFF"> 
	   <table class="es-wrapper" width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;padding:0;Margin:0;width:100%;height:100%;background-repeat:repeat;background-position:center top;background-color:#FFFFFF"> 
	     <tr> 
	      <td valign="top" style="padding:0;Margin:0"> 
	        <!-- header -->
	       <table class="es-content" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%"> 
	         <tr> 
	          <td align="center" style="padding:0;Margin:0"> 
	           <table class="es-content-body" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#EFEFEF;width:1700px"> 
	             <tr> 
	              <td align="left" bgcolor="#08090a" style="padding:0;Margin:0;padding-top:20px;padding-left:40px;padding-right:40px;background-color:#08090a"> 
	               <table cellpadding="0" cellspacing="0" width="100%" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                 <tr> 
	                  <td align="center" valign="top" style="padding:0;Margin:0;width:520px"> 
	                   <table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                     <tr> 
	                      <td align="center" style="padding:0;Margin:0;font-size:0px"></td> 
	                     </tr> 
	                     <tr> 
	                      <td align="center" style="padding:15px;Margin:0;font-size:0"> 
	                       <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                         <tr> 
	                          <td style="padding:0;Margin:0;border-bottom:0px solid #cccccc;background:none;height:1px;width:100%;margin:0px"></td> 
	                         </tr> 
	                       </table></td> 
	                     </tr> 
	                   </table></td> 
	                 </tr> 
	               </table></td> 
	             </tr> 
	             <tr> 
	              <td class="es-m-p20r es-m-p20l" align="left"> 
	               <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                 <tr> 
	                  <td valign="top" align="center" style="padding:0;Margin:0;width:520px"> 
	                   <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                     <tr> 
	                      <td class="es-m-txt-l" align="center" style="padding:0;Margin:0;padding-top:5px;padding-bottom:5px"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:\'Darker Grotesque\', sans-serif;line-height:45px;color:#000000;font-size:35px;font-weight:600;">'.$titulo_head.'</p></td> 
	                     </tr> 
	                   </table></td> 
	                 </tr> 
	               </table></td> 
	             </tr> 
	           </table></td> 
	         </tr> 
	       </table> ';

        return $head;
    }

    public function footer(){
        $footer ='
	        <table class="es-footer" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:transparent;background-repeat:repeat;background-position:center top"> 
	         <tr> 
	          <td align="center" style="padding:0;Margin:0"> 
	           <table class="es-footer-body" cellspacing="0" cellpadding="0" bgcolor="#08090a" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#08090a;width:1700px"> 
	             <tr> 
	              <td class="es-m-p20r es-m-p20l" align="left" style="padding:40px;Margin:0"> 
	               <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                 <tr> 
	                  <td align="left" style="padding:0;Margin:0;width:520px"> 
	                   <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
	                     <tr> 
	                      <td style="padding:0;Margin:0;padding-bottom:10px;font-size:0" align="center"></td> 
	                     </tr> 
	                     <tr> 
	                      <td align="center" style="padding:0;Margin:0;padding-top:10px;padding-bottom:0px"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:\'Darker Grotesque\', sans-serif;line-height:30px;color:#ffffff;font-size:15px">Perssa© '.date("Y").'
	                      </p>
	                      </td> 
	                     </tr>
	                   </table></td> 
	                 </tr> 
	               </table></td> 
	             </tr> 
	           </table></td> 
	         </tr> 
	       </table></td>
	     </tr> 
	   </table> 
	  </div>  
	 </body>
	</html>';

return $footer;
}

public function body_seg_folios($num_oc){

$body=
	    '<table class="es-content-body" align="center" cellpadding="0" cellspacing="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:1700px;" bgcolor="#FFFFFF">';
	    	$body .='<tr>
		        <td class="esdev-adapt-off" align="left" style="margin:0;"> 
		              <tr>
			              <td class="es-m-p20r es-m-p20l" align="left" style="Margin:0;padding-bottom:20px;padding-top:40px;padding-left:40px;padding-right:40px"> 
				               <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
				               		<tr style="font-size:20px;">
							            <td style="padding:5px;margin:0;"><p class="text-title" style="padding-top:20px;margin: 0;">Información del usuario:</p>
						                 </td> 
					                 </tr> 
					                 <tr> 
						                 <td valign="top" align="center" style="padding:0;Margin:0;width:520px"> 
							                   <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;"> 
							                     	<tr style="font-size:20px;">
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Usuario elaboro:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Depto:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Correo:</p>
							                     		</td>
							                     		
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Telefono:</p>
							                     		</td>
							                     		
							                     	</tr>';
							                     	foreach($num_oc as $detalles_oc){
							                     		 	

										                $body .='<tr>
										                  <td align="left" style="padding:0;Margin:0;font-size:12px;line-height:20px">
										                    <tr style="padding:0;Margin:0;font-size:16px;line-height:13px;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, \'helvetica neue\', helvetica, sans-serif;line-height:27px;color:#000000;font-size:20px;" align="left">
										                      <td>'.htmlentities($detalles_oc->nombre).'</td>
										                      <td>'.htmlentities($detalles_oc->deptos).'</td>
										                      <td>'.htmlentities($detalles_oc->correo).'</td>
										                      <td>'.htmlentities($detalles_oc->celular).'</td>
										                      
										                      
										                    </tr>
										                  </td>
										                </tr>';
										            }
							                   $body .='</table>
						                  </td> 
					                 </tr> 
				               </table>
			               </td> 
		                  
	                </tr>
	            </td>  
	        </tr>
	        
	        
	        
	    </table>';
$body.=
	    '<table class="es-content-body" align="center" cellpadding="0" cellspacing="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:1700px;" bgcolor="#FFFFFF">';
	    	$body .='<tr>
		        <td class="esdev-adapt-off" align="left" style="margin:0;"> 
		              <tr>
			              <td class="es-m-p20r es-m-p20l" align="left" style="Margin:0;padding-bottom:20px;padding-top:40px;padding-left:40px;padding-right:40px"> 
				               <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
				               		<tr style="font-size:20px;">
							            <td style="padding:5px;margin:0;"><p class="text-title" style="padding-top:20px;margin: 0;">Información de la orden de compra:</p>
						                 </td> 
					                 </tr> 
					                 <tr> 
						                 <td valign="top" align="center" style="padding:0;Margin:0;width:520px"> 
							                   <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;"> 
							                     	<tr style="font-size:20px;">
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">#OC:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Proveedor:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Obra:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Folio obra:</p>
							                     		</td>
							                     		
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Importe:</p>
							                     		</td>
							                     		
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Fecha alta:</p>
							                     		</td>
							                     		
							                     	</tr>';
							                     	foreach($num_oc as $detalles_oc){
							                     		 	

										                $body .='<tr>
										                  <td align="left" style="padding:0;Margin:0;font-size:12px;line-height:20px">
										                    <tr style="padding:0;Margin:0;font-size:16px;line-height:13px;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, \'helvetica neue\', helvetica, sans-serif;line-height:27px;color:#000000;font-size:20px;" align="left">
										                      <td>'.htmlentities($detalles_oc->OC).'</td>
										                      <td>'.htmlentities($detalles_oc->nomprovee).'</td>
										                      <td>'.htmlentities($detalles_oc->obras).'</td>
										                      <td>'.htmlentities($detalles_oc->fobra).'</td>
										                      <td>$ '.number_format($detalles_oc->importe, 2, '.', ',').'</td>
										                      <td>'.htmlentities($detalles_oc->fecha_crea).'</td>
										                      
										                    </tr>
										                  </td>
										                </tr>';
										            }
							                   $body .='</table>
						                  </td> 
					                 </tr> 
				               </table>
			               </td> 
		                  
	                </tr>
	            </td>  
	        </tr>
	        
	        
	        
	    </table>';

return $body;
}


public function body_cr_folio($num_cr){
$body=
	    '<table class="es-content-body" align="center" cellpadding="0" cellspacing="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:1700px;" bgcolor="#FFFFFF">';
	    	$body .='<tr>
		        <td class="esdev-adapt-off" align="left" style="margin:0;"> 
		              <tr>
			              <td class="es-m-p20r es-m-p20l" align="left" style="Margin:0;padding-bottom:20px;padding-top:40px;padding-left:40px;padding-right:40px"> 
				               <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
				               		<tr style="font-size:20px;">
							            <td style="padding:5px;margin:0;"><p class="text-title" style="padding-top:20px;margin: 0;">Información del contra recibo:</p>
						                 </td> 
					                 </tr> 
					                 <tr> 
						                 <td valign="top" align="center" style="padding:0;Margin:0;width:520px"> 
							                   <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;"> 
							                     	<tr style="font-size:20px;">
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Folio contra recibo:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Usuario elaboro:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Fecha alta:</p>
							                     		</td>
							                     		
							                     	</tr>';
							                     	foreach($num_cr as $detalles_cr){
							                     		 	

										                $body .='<tr>
										                  <td align="left" style="padding:0;Margin:0;font-size:12px;line-height:20px">
										                    <tr style="padding:0;Margin:0;font-size:16px;line-height:13px;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, \'helvetica neue\', helvetica, sans-serif;line-height:27px;color:#000000;font-size:20px;" align="left">
										                      <td>'.htmlentities($detalles_cr->folio_cr).'</td>
										                      <td>'.htmlentities($detalles_cr->nombre).'</td>
										                      <td>'.htmlentities($detalles_cr->f_creado).'</td>
										                      
										                      
										                    </tr>
										                  </td>
										                </tr>';
										            }
							                   $body .='</table>
						                  </td> 
					                 </tr> 
				               </table>
			               </td> 
		                  
	                </tr>
	            </td>  
	        </tr>
	        
	        
	        
	    </table>';

return $body;
}


public function body_pago_folio($num_pago){
$body=
	    '<table class="es-content-body" align="center" cellpadding="0" cellspacing="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:1700px;" bgcolor="#FFFFFF">';
	    	$body .='<tr>
		        <td class="esdev-adapt-off" align="left" style="margin:0;"> 
		              <tr>
			              <td class="es-m-p20r es-m-p20l" align="left" style="Margin:0;padding-bottom:20px;padding-top:40px;padding-left:40px;padding-right:40px"> 
				               <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> 
				               		<tr style="font-size:20px;">
							            <td style="padding:5px;margin:0;"><p class="text-title" style="padding-top:20px;margin: 0;">Información del pago:</p>
						                 </td> 
					                 </tr> 
					                 <tr> 
						                 <td valign="top" align="center" style="padding:0;Margin:0;width:520px"> 
							                   <table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;"> 
							                     	<tr style="font-size:20px;">
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Folio contra recibo:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Usuario elaboro:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Abono:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Saldo:</p>
							                     		</td>
							                     		<td style="padding:0;margin:0;border: #b2b2b2 1px solid;"><p class="text-title" style="padding-top:20px;margin: 0;">Fecha alta:</p>
							                     		</td>
							                     		
							                     	</tr>';
							                     	foreach($num_pago as $detalles_pago){
							                     		 	

										                $body .='<tr>
										                  <td align="left" style="padding:0;Margin:0;font-size:12px;line-height:20px">
										                    <tr style="padding:0;Margin:0;font-size:16px;line-height:13px;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, \'helvetica neue\', helvetica, sans-serif;line-height:27px;color:#000000;font-size:20px;" align="left">
										                      <td>'.htmlentities($detalles_pago->folio).'</td>
										                      <td>'.htmlentities($detalles_pago->nombre).'</td>
										                      <td>$ '.number_format($detalles_pago->abono, 2, '.', ',').'</td>
										                      <td>$ '.number_format($detalles_pago->saldo, 2, '.', ',').'</td>
										                      <td>'.htmlentities($detalles_pago->f_creado).'</td>
										                      
										                      
										                    </tr>
										                  </td>
										                </tr>';
										            }
							                   $body .='</table>
						                  </td> 
					                 </tr> 
				               </table>
			               </td> 
		                  
	                </tr>
	            </td>  
	        </tr>
	        
	        
	        
	    </table>';

return $body;
}

}