<?php ob_start(); ?>
<?php
?>
<?php //if(empty($plong)){$plong=4;}?>
<?php //if(mb_stristr('enti.item.drtr',$ptabla)){$plong=13;}?>
<?php //if(mb_stristr('caja.ctab.ptov.bode',$ptabla)){$plong=4;}?>
<?php //if(mb_stristr('zsub.lsub.csub',$ptabla)){$plong=9;}?>
<?php //if(mb_stristr('vndd.rcdd',$ptabla)){$plong=10;}?>


<?php $mobile= $_SESSION['user_mobile'];?>

<?php if(empty($pidtxt)){$pidtxt=$pcaption;}?>
<?php if(empty($pclass)){$pclass="";}?>
<?php if(empty($pclass)){$pclass=date("is");}?>
<?php if(empty($ponblur)){$ponblur="";}?>
<?php if(empty($ponclick)){$ponclick="";}?>
<?php if(empty($ponchange)){$ponchange="";}?>
<?php if(empty($pnotob)){$pnotob="";}?>
<?php if(empty($pvalue)){$pvalue="";}?>
<?php if(empty($ptabla)){$ptabla="";}?>
<?php if(empty($pline)){$pline="";}?>
<?php if(empty($pcolu)){$pcolu="";}?>
<?php if(empty($pobj)){$pobj=3;} ?>
<?php if(empty($phide)){$phide=0;} ?>
<?php if(empty($psize)){$psize=12;} ?>
<?php if(empty($preado)){$preado=0;} ?>
<?php if(empty($pdefa)){$pdefa='0';}else{$pdefa='1';} ?>
<?php if($pobj>5){$pobj=3;} ?>

<?php $ponclick=str_replace('"',"'",$ponclick); ?>
<?php $ponchange=str_replace('"',"'",$ponchange); ?>

<?php if($ponclick=='' and $ponchange!=''){$ponclick=$ponchange;} ?>

<?php if($pobj==2){?>
<td id="th_<?php echo $pidtxt ?>" class="<?php echo $pclass; ?>" width="<?php echo $plong ?>px" valign="top" style="background:white;">
<?php } ?>
  <?php if(1==1){ ?>
	<div class="<?php echo $pclass; ?>" >
  <input type="button" 
         class="chkbox_btn"
         id="<?php echo $pidtxt ?>_btn" 
				 tabIndex="-1"
         style="
								font-size:<?php echo $psize;?>px;
								<?php if($pobj!=2 or $phide==1){echo 'display:none;';} ?>
								" 
         value="<?php echo ($pcaption) ?>" 
         />
  </div>
<?php } ?>
  
	<div style="margin-left:5px; " class="<?php echo $pclass; ?>" >
  <input
         value="<?php echo $pvalue ?>" 
         type="checkbox" 
         id="<?php echo $pidtxt ?>" 
         name="<?php echo $pidtxt ?>" 
         class="<?php echo $pclass ?>" 
				 onChange="_onchchk(event,'<?php echo $pidtxt;?>');<?php echo $ponclick;?>;
									 "
				 <?php if($pobj==3){echo 'tabIndex="-1"';}?>
         style="
								margin:0px;
								vertical-align:middle;
      				 <?php if($preado=='1'){echo 'pointer-events: none;';}?>
               <?php if($phide==1){echo 'display:none;';} ?>  							  
							 <?php if($mobile=='true') { ?>
							 <?php if($pobj==2){echo 'zoom:3.2';}else{echo 'zoom:2.8';}?>
							 <?php }else{ ?>	
							 <?php if($pobj==2){echo 'zoom:1.8';}else{echo 'zoom:1.4';}?>
							 <?php } ?>	
								"
         tabla="<?php echo $ptabla ?>" 
         line="<?php echo $pline ?>" 
         colu="<?php echo $pcolu ?>" 
         <?php if($pdefa==1 or $pdefa=="1" or $pdefa=='checked'){echo 'checked';} ?>
         />
	<?php if($pobj==3){?>
		<span
        class="<?php echo $pclass; ?>"          
	      onClick="
									{
								 	if(document.getElementById('<?php echo $pidtxt ?>').checked)
								 	{document.getElementById('<?php echo $pidtxt ?>').checked='';}
									else
								 	{document.getElementById('<?php echo $pidtxt ?>').checked='checked';}
									}
									<?php echo $ponclick;?>;
									"
				style="
							font-weight:bold;
							font-family:arial;
							font-size:<?php echo $psize;?>px;
              <?php if($phide==1){echo 'display:none;';} ?> 
               "
				>
		<?php echo $pcaption;?>
		</span>
	<?php }?>
	<?php if($pobj==4){?>
		<input type="button"
        id="<?php echo $pidtxt ?>_btn4" 
	      onClick="
									{
								 	if(document.getElementById('<?php echo $pidtxt ?>').checked)
								 	{document.getElementById('<?php echo $pidtxt ?>').checked='';}
									else
								 	{document.getElementById('<?php echo $pidtxt ?>').checked='checked';}
									}
									<?php echo $ponclick;?>;
								 "
				tabindex="-1"
				style="
							text-transform:uppercase;
							font-weight:bold;
							font-family:arial;
							font-size:<?php echo $psize;?>px;
							"
				value="<?php echo $pcaption; ?>"
				>
	<?php }?>

	</div>

<?php if($pobj==2){?>
</td>
<?php } ?>
	
<?php $ponclick='';?>
<?php $ponchange='';?>
<?php $pcaption='';?>
<?php $ptabla='';?>
<?php $pline='';?>
<?php $pcolu='';?>
<?php $pidtxt='';?>
<?php $pclass='';?>
<?php $plong='';?>
<?php $psize='';?>
<?php $pobj='';?>
<?php $ponblur='';?>
<?php $pnotob='';?>
<?php $pdefa='';?>
<?php $pvalue='';?>
<?php $pclass='';?>
<?php $phide='';?>
<?php $pdocu='';?>
<?php $preado='';?>

<?php $obstart = ob_get_clean(); ?>
<?php //$obstart=alltrim($obstart); ?>
<?php $obstart = limpiahtml($obstart) ?>
<?php echo $obstart; ?>
