Esempio n. 1
0
                <span style="background-color:red;padding:4px;color:white;font-weight:bold;">FAIL</span>
                <?php
                }
                else
                {
                ?>Not Available<?php
                }
            }
        }
            ?></li>
</ul>
<ul class="field" id="item_data_dates_holder">
    <li class="header">Item Dates</li>
    <li><h3>Purchased</h3><?php echo doParseDate($arrItem['purchase_date']);?></li>
    <li><h3>Warranty</h3><?php echo doParseDate($arrItem['warranty_date']);?></li>
    <li><h3>Replace</h3><?php echo doParseDate($arrItem['replace_date']); ?></li>
</ul>
<ul id="item_data_options_holder">
    <li class="header">Item Options</li>
    <?php if($this->session->userdata('objAppUser')->compliance == 1) { ?>
        <li class="arrow"><a href="#" onclick="isaItem_showCompliance(<?php echo $arrItem['itemid']; ?>);"><img src="img/icon-bloke.png" width="29" class="ico"> Complete Compliance Checks</a></li>
    <?php } ?>
    <?php if($arrItem['supplier'] != NULL) { ?>
        <li class="arrow"><a href="#" onclick="isaSuppliers_getSupplier(<?php echo $arrItem['supplier']; ?>);"><img src="img/icon-bloke.png" width="29" class="ico">View Supplier</a></li>
    <?php } ?>
    <li class="arrow"><a href="#" onclick="isaItem_showOwnershipForm(<?php echo $arrItem['itemid']; ?>);"><img src="img/icon-bloke.png" width="29" class="ico"> Change Item Ownership</a></li>
    <li class="arrow"><a href="#" onclick="isaItem_showChangeStatusForm(<?php echo $arrItem['itemid']; ?>);"><img src="img/icon-bloke.png" width="29" class="ico"> Change Item Status</a></li>
    <li class="arrow"><a href="#" onclick="isaItem_showTicketForm(<?php echo $arrItem['itemid']; ?>);"><img src="img/icon-problem.png" width="29" class="ico"> Report a Problem</a></li>
    <?php if ($this->session->userdata('objAppUser')->levelid > 1) {?>
        <li class="arrow"><a href="#" onclick="isaItem_showPhotoForm(<?php echo $arrItem['itemid']; ?>);"><img src="img/icon-camera.png" width="29" class="ico"> Update Item Photo</a></li>
        <li class="arrow"><a href="#" onclick="isaItem_showCopyForm(<?php echo $arrItem['itemid']; ?>);"><img src="img/icon-add.png" width="29" class="ico"> Add Similar Item</a></li>
Esempio n. 2
0
    <li><h3>Current Location</h3><?php echo $arrVehicle['name'] ?></li>
    <li><h3>Next service due</h3><?php echo $arrVehicle['service_due_date'] ?></li>
    <li><h3>MOT Test Date</h3><?php echo $arrVehicle['mot_due_date'] ?></li>
</ul>
<ul class="field" id="item_data_notes_holder">
    <li class="header">Vehicle Notes</li>
    <?php
        if ($arrVehicle['notes'] == "")
        {
    ?>
    <li><em>No notes</em></li>
    <?php
        }
        else
        {
                ?><li><?php echo $arrVehicle['notes']; ?></li><?php
        }
    ?>
</ul>

<ul class="field" id="item_data_dates_holder">
    <li class="header">Vehicle Dates</li>
    <li><h3>Purchased</h3><?php echo doParseDate($arrVehicle['purchase_date']);?></li>
    <li><h3>Warranty</h3><?php echo doParseDate($arrVehicle['warranty_date']);?></li>
</ul>
<ul id="item_data_options_holder">
    <li class="header">Vehicle Options</li>
    <li class="arrow"><a href="#" onclick="isaVehicle_getVehicleChecks(<?php echo $arrVehicle['fleet_id']; ?>);"><img src="img/icon-bloke.png" width="29" class="ico">Complete Vehicle Checks</a></li>
    <li class="arrow"><a href="#" onclick="isaVehicle_showOwnershipForm(<?php echo $arrVehicle['itemid']; ?>);"><img src="img/icon-bloke.png" width="29" class="ico"> Change Vehicle Ownership</a></li>
    <li class="arrow"><a href="#" onclick="isaVehicle_showTicketForm(<?php echo $arrVehicle['itemid']; ?>);"><img src="img/icon-problem.png" width="29" class="ico"> Report a Problem</a></li>
</ul>
Esempio n. 3
0
        }
        else
        {
            return 'Not Available';
        }
    }
?>

    <ul class="profile">
                <li class="picture" style="background:url('https://www.ischoolaudit.com/isa/appversionthree/viewUserHero/<?php echo $objItem->itemphotoid; ?>') no-repeat center center;"></li>
                <li class="clearfix" id="item_text_holder"><h2><?php echo $objItem->manufacturer." ".$objItem->model; ?></h2><p><?php echo $objItem->categoryname; ?><br /><?php echo $objItem->barcode; ?></p></li>
            </ul>

            <ul class="field" id="patform_pat_holder">
                <li class="header">Current PAT Result</li>
                <li><h3>PAT Date</h3><?php echo doParseDate($objItem->pattest_date); ?></li>
                <li><h3>PAT Status</h3><?php 
                
                    if ($objItem->pattest_status != "")
                                    {
                                        if ($objItem->pattest_status > 0)
                                        {
                                            echo '<span style="background-color:green;padding:4px;color:white;font-weight:bold;">PASS</span>';
                                        }
                                        else
                                        {
                                            echo '<span style="background-color:red;padding:4px;color:white;font-weight:bold;">FAIL</span>';
                                        }
                                    }
                                    else 
                                    {