function e13Screen($label, $test_id, $protocol_id) { ?> <code class="p10 mr10 bg-light" style="border-radius: 5px;"> <label><input type="radio" name="<?php echo $label; ?> " id="<?php echo $label . "_01"; ?> " value="Y_<?php echo $test_id; ?> " <?php echo getYes($protocol_id, $test_id); ?> onclick="saveChecklist('<?php echo $protocol_id; ?> ')"><i class="fa fa-check ml5" title="Acceptable"></i></input></label> <label><input type="radio" name="<?php echo $label; ?> " id="<?php echo $label . "_02"; ?> " value="N_<?php echo $test_id; ?> " <?php echo getNo($protocol_id, $test_id); ?> onclick="saveChecklist('<?php echo $protocol_id; ?> ')"><i class="fa fa-close ml5" title="Not Acceptable"></i></input></label> </code> <?php }
function resetNo($iType, $frmSource){ if($iType = 'PO'){ $head = 'PON' ; }else{ $head = $iType ; } $resetVal = ($head."/". date("dmy").'0001'); updateNextNo($iType,1,$resetVal,$frmSource); $ret = getNo($iType); return ($ret); }