Exemple #1
0
<?php

$title = l(empty($id) ? 'Add %s' : 'Edit %s', array(humanize(get_class($CI))));
?>

<?php 
echo $this->admin_panel->breadcrumb(array(array('uri' => $CI->_get_uri($CI->uri->rsegments[2]), 'title' => humanize(get_class($CI))), array('uri' => $CI->uri->uri_string, 'title' => $title)));
?>
<div class="clear"></div>

<?php 
echo xview_error();
?>

<form action="<?php 
echo current_url();
?>
" method="post" class="ajaxform">
    <fieldset>
        <legend><?php 
echo $title;
?>
</legend>
        <div>
            <label class="mandatory"><?php 
echo l('Name');
?>
</label>
            <input type="text" value="<?php 
echo set_value('name');
?>
Exemple #2
0
<?php

$title = l(empty($id) ? 'Add %s' : 'Edit %s', array(humanize(get_class($CI))));
?>

<?php 
echo $this->admin_panel->breadcrumb(array(array('uri' => $CI->_get_uri($CI->uri->rsegments[2]), 'title' => humanize(get_class($CI))), array('uri' => $CI->uri->uri_string, 'title' => $title)));
?>
<div class="clear"></div>

<?php 
xview_error();
?>

<form action="<?php 
echo current_url();
?>
" method="post" class="ajaxform">
    <fieldset>
        <legend><?php 
echo $title;
?>
</legend>
        <?php 
foreach ($field_data as $field) {
    ?>
            <?php 
    if (!$CI->_is_generated($field->name)) {
        ?>
                <div>
                    <label><?php