Esempio n. 1
0
echo $langArray["phone"];
?>
</td>
        <td><?php 
echo $langArray["email"];
?>
</td>
        <td><?php 
echo $langArray["delete"];
?>
</td>
    </tr>
    <?php 
foreach ($arrResult as $arItem) {
    $linkView = CMain::getLink(array("controller" => "user", "view" => "view", "id" => $arItem["id"]));
    $linkDelete = CMain::getLink(array("controller" => "user", "view" => "delete", "id" => $arItem["id"]));
    ?>
        <tr>
            <td><?php 
    echo $arItem["id"];
    ?>
</td>
            <td><a href="<?php 
    echo $linkView;
    ?>
"><?php 
    echo $arItem["login"];
    ?>
</a></td>
            <td><a href="<?php 
    echo $linkView;
Esempio n. 2
0
<div class="column1">
    <ul class="menu">
        <li><a href="<?php 
echo CMain::getLink(array("controller" => "user", "view" => "create"));
?>
"><?php 
echo $langArray["createUser"];
?>
</a></li>
        <li><a href="<?php 
echo CMain::getLink(array("controller" => "user", "view" => "index"));
?>
"><?php 
echo $langArray["allUsers"];
?>
</a></li>
    </ul>
</div>
<div class="column2">

<form method="post" action="">
    <table class="changeUser">
        <tr>
            <td><?php 
echo $langArray["login"];
?>
</td>
            <td><input type="text" name="user[login]" value="<?php 
echo $arrResult["login"];
?>
"></td>
Esempio n. 3
0
<table class="userList" border>
    <tr class="table-head">
        <td><a href="?sort=id&param=asc">ID asc</a>/<br /><a href="?sort=id&param=desc">ID desc</a></td>
        <td><a href="?sort=login&param=asc">LOGIN asc</a>/<br /><a href="?sort=login&param=desc">LOGIN desc</a></td>
        <td><a href="?sort=role&param=asc">ROLE asc</a>/<br /><a href="?sort=role&param=desc">ROLE desc</a></td>
        <td><a href="?sort=firstName&param=asc">NAME asc</a>/<br /><a href="?sort=firstName&param=desc">NAME desc</a></td>
        <td><a href="?sort=lastName&param=asc">SURNAME asc</a>/<br /><a href="?sort=lastName&param=desc">SURNAME desc</a></td>
        <td><a href="?sort=birthday&param=asc">DATE asc</a>/<br /><a href="?sort=birthday&param=desc">DATE desc</a></td>
        <td>PHONE</td>
        <td>EMAIL</td>
        <td>DELETE</td>
    </tr>
    <?php 
foreach ($arrResult as $arItem) {
    $link = CMain::getLink(array("controller" => "user", "view" => "view", "id" => $arItem["id"]));
    ?>
        <tr>
            <td><?php 
    echo $arItem["id"];
    ?>
</td>
            <td><a href="<?php 
    echo $link;
    ?>
"><?php 
    echo $arItem["login"];
    ?>
</a></td>
            <td><a href="<?php 
    echo $link;