Example #1
0
<?php

if (validation_errors() || $error_msg != '') {
    ?>
<div class="clean-red"><?php 
    echo validation_errors();
    echo $msg;
    ?>
</div><br />
<?php 
} elseif (Session::flashData('msg') || $msg != '') {
    ?>
<div class="clean-green"><?php 
    echo Session::flashData('msg');
    echo $msg;
    ?>
</div><br />
<?php 
} else {
}
?>
<form method="post" action="">
<table width="100%" border="0" class="type-one">
      <tr>
        <td width="20%">
        <?php 
$js = 'id = "office_id" ';
echo form_dropdown('office_id', $options, $selected, $js);
?>
</td>
        <td width="71%"></td>
Example #2
0
} elseif (Session::flashData('msg')) {
    ?>
<div class="clean-green"><?php 
    echo Session::flashData('msg');
    ?>
</div>
<?php 
} else {
}
?>

<?php 
if (Session::flashData('error_msg')) {
    ?>
	<div class="clean-red"><?php 
    echo Session::flashData('error_msg');
    ?>
</div>
<?php 
}
?>

<form action="" method="post">
<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="<?php 
echo base_url();
?>
office_manage/add_office">Add Office</a></td>