Ejemplo n.º 1
0
</li>
        <li><?php 
$f->l_text_field_ds('rev_number');
?>
</li>
       </ul>
     </div>
     <div id="tabsHeader-2" class="tabContent">
      <div> 
       <ul class="column header_field">
        <li><?php 
$f->l_select_field_from_object('validation_type', sys_value_group_header::validation_types(), 'option_line_code', 'option_line_value', ${$class}->validation_type, '', $readonly, 'validation_type', '');
?>
</li>
        <li><?php 
$f->l_select_field_from_object('field_type', content_type::content_field_type(), 'option_line_code', 'option_line_value', ${$class}->field_type, '', $readonly, 'field_type', '');
?>
</li>
        <li><?php 
$f->l_number_field_d('min_size');
?>
</li>
        <li><?php 
$f->l_number_field_d('max_size');
?>
</li>
        <li><?php 
$f->l_number_field_d('fixed_size');
?>
</li>
        <li><?php 
Ejemplo n.º 2
0
    $field_name = $_GET['field_name'];
    $result = content_type::drop_column($content_name, $field_name);
    if ($result == 1) {
        echo 'Column is deleted!';
    } else {
        return false;
    }
}
?>
 </div>
</div>

<div id="json_drop_table" >
 <div class="json_message">
	<?php 
if (!empty($_GET['delete']) && $_GET['delete'] == 2) {
    $content_name = $_GET['content_name'];
    $ct = new content_type();
    $result = $ct->drop_table($content_name);
    if ($result == 111) {
        echo 'Content type is dropped!';
    } else {
        echo " Error code: {$result} ! ";
    }
}
?>
 </div>
</div>

<?php 
include_template('footer.inc');