Esempio n. 1
0
?>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane active in" id="home">
                        <?php 
echo validation_errors('<div class="alert alert-danger">', '</div>');
?>
                       <?php 
/*if the session has attributes*/
$attrs = null;
if (in_array('attributes', array_keys($stored_sess_info))) {
    $attrs = unserialize($stored_sess_info['attributes']);
    //var_dump($attrs);
}
//var_dump($attributes);
if (isset($attributes) && is_array($attributes)) {
    foreach ($attributes as $attr) {
        /*checking the value of the attr*/
        $field_array = deviceManagement::_check_value($attrs, $attr->id);
        echo '<label>' . $attr->enName . '</label>';
        deviceManagement::_generate_field($attr->id, $attr->attributeType, deviceManagement::_check_value($field_array, 'value'));
        echo " " . $attr->name;
    }
}
?>

                </div>
            </div>

        </div>
<?php 
echo form_close();
Esempio n. 2
0
                    <label>device brand</label>
                    <?php 
echo form_dropdown('deviceBrand', $brands, $device->brandID);
?>

                    <label>Previous Photo</label>
                    <?php 
echo img($device->photo);
?>
                    <label>Photo</label>
                    <input type="file" name="userfile" class="input-xlarge">
                    <br/><br/><br/>
                    <p>Labels</p>
                     <?php 
if (isset($attributes) && is_array($attributes)) {
    foreach ($attributes as $attr) {
        echo '<label>' . $attr->enName . '</label>';
        deviceManagement::_generate_field($attr->id, $attr->attributeType, $attr->value, $attr->property_id);
        echo " " . $attr->name;
    }
}
?>

                </div>
                
            </div>

        </div>
<?php 
echo form_close();
Esempio n. 3
0
    echo $message['msg'];
    ?>
                </div>
            <?php 
}
?>
            <div id="myTabContent" class="tab-content">
                <div class="tab-pane active in" id="home">
                    <input type="hidden" name="deviceID" value="<?php 
echo $deviceID;
?>
" />
                        <?php 
echo validation_errors('<div class="alert alert-danger">', '</div>');
?>
                       <?php 
if (isset($attributes) && is_array($attributes)) {
    foreach ($attributes as $attr) {
        echo '<label>' . $attr->enName . '</label>';
        deviceManagement::_generate_field($attr->id, $attr->attributeType);
        echo " " . $attr->name;
    }
}
?>

                </div>
            </div>

        </div>
<?php 
echo form_close();