Welcome Guest, Not a member yet? Register   Sign In
Table library and form input box
#1

[eluser]pisio[/eluser]
Hey evryone, Im here with my stupid question and my bad english.Sorry for that :d
I get from mysql results:
Code:
function getTopLinks() {
        $this->linksForEdit = $this->db->get('links');
        print_r($this->linksForEdit->result());
    }
That result :
Code:
Array ( [0] => stdClass Object ( [id] => 1 [url] => / [value] => Home [is_admin] => 0 [position] => 0 [visable] => 0 ) [1] => stdClass Object ( [id] => 2 [url] => # [value] => Created by Preslav Panayotov [is_admin] => 1 [position] => 1 [visable] => 0 ) [2] => stdClass Object ( [id] => 3 [url] => /users/index [value] => Login [is_admin] => 0 [position] => 0 [visable] => 1 ) [3] => stdClass Object ( [id] => 4 [url] => /users/register [value] => Register [is_admin] => 0 [position] => 0 [visable] => 1 ) [4] => stdClass Object ( [id] => 5 [url] => /users/logout [value] => Logout [is_admin] => 0 [position] => 0 [visable] => 2 ) [5] => stdClass Object ( [id] => 6 [url] => /video/random [value] => Random Video [is_admin] => 0 [position] => 0 [visable] => 0 ) [6] => stdClass Object ( [id] => 7 [url] => /video/upload [value] => Upload video [is_admin] => 0 [position] => 0 [visable] => 2 ) [7] => stdClass Object ( [id] => 8 [url] => /capanel/admin/index [value] => Admin Panel [is_admin] => 0 [position] => 1 [visable] => 3 ) [8] => stdClass Object ( [id] => 9 [url] => /capanel/admin/links [value] => Edit Links [is_admin] => 1 [position] => 0 [visable] => 3 ) )


And I'm printing table with :
Code:
echo $this->table->generate($this->AdminEditLinks->linksForEdit);
http://index.web-tourist.net/wp-content/...itled1.png

Its cool. But here it is my question:
How i can make input with name url / value / is_admin / position / visable?
I dont wanna make it with foreach and make for everyone inputbox.
Thank you in advance.


Messages In This Thread
Table library and form input box - by El Forum - 08-04-2012, 09:24 AM
Table library and form input box - by El Forum - 08-05-2012, 12:33 AM
Table library and form input box - by El Forum - 08-05-2012, 05:49 AM
Table library and form input box - by El Forum - 08-05-2012, 11:34 AM
Table library and form input box - by El Forum - 08-05-2012, 12:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB