Welcome Guest, Not a member yet? Register   Sign In
edit and add logic
#4

Thanks I have read the docs.

Another thing that I am confuse, look at this one:

I try to click the edit button and nothing happen.  It does not bring me to the next page either.  How to make the edit button brings me to the next pages?


views/pages.php


PHP Code:
<?php foreach ($pages as $pages_item): ?>
                                    
                        <table border="0" style="width: 100%; height: 40px;"> 
                        
                        
                            <tr>
                                <td width="200px"><?php echo $pages_item->pages_name?></td>
                                <td width="300px"><?php echo $pages_item->create_date?></td>
                                <td width="100px"><?php echo $pages_item->pages_order?></td>
                                <td width="200px"><button type="button" class="edit" href="<?php echo base_url();?>/index.php/cpages/addpages">EDIT</button></td>
                                <td width="300px"><button type="button" class="delete" href="adminform.php">DELETE</button></td>    
                            </tr>    
                                
                        </table>        

                        <?php endforeach; ?>


views/add_pages.php

PHP Code:
<table border="0" style="width: 100%; height: 90px;">
                            <
tr>
                                <
td>Pages Name:</td>
                                <
td><input type="input" name="pages_name"
                                
value="<?php echo set_value('pages_name'); ?>"></td>
                            </
tr>
                            <!--
                            <
tr>
                                <
td>Create Date:</td>
                                <
td><input type="input" name="create_date" size="2"></td>
                         
   </tr> -->                            
                            <
tr>
                                <
td>Order:</td>
                                <
td><input type="input" name="pages_order" value="<?php echo set_value('pages_order'); ?>" size="4"></td>
                         
   </tr>
                            <
tr>
                                <
td></td>
                                <
td><input type="submit" name="submit" value="Submit" /></td>
                         
   </tr>    
                        </
table
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
edit and add logic - by davy_yg - 06-23-2016, 04:42 AM
RE: edit and add logic - by JayAdra - 06-23-2016, 04:48 AM
RE: edit and add logic - by Martin7483 - 06-23-2016, 05:59 AM
RE: edit and add logic - by davy_yg - 06-23-2016, 06:36 AM
RE: edit and add logic - by InsiteFX - 06-23-2016, 11:20 AM
RE: edit and add logic - by ivantcholakov - 06-23-2016, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB