示例#1
0
文件: Users.php 项目: smilexx/counter
 public function printTovar()
 {
     $tovarishestva = Tovarishestva::all();
     foreach ($tovarishestva as $value) {
         $str = '<tr class="tovarRow" data-tovar="' . $value->id . '">
             <td class="login"><a href="/admin/users/' . $value->id . '" style="text-decoration:none"> 
                             <div style="height:100%;width:100%">
                                 ' . $value->name . '
                             </div>
                         </a></td>  
     </tr>';
         echo $str;
     }
 }
示例#2
0
        </table>
    </div>
    <?php 
} else {
    ?>
    <div class=" col-md-15 well">
        <legend>Выберите товарищество</legend>
        <table  class="table table-striped">
            <thead>
                <tr>	
                    <th>Название</th>
                </tr>
            </thead>
            <tbody>
                <?php 
    $tovarishestva = Tovarishestva::all();
    foreach ($tovarishestva as $value) {
        ?>
                    <tr>
                        <td><a href="/admin/indications/<?php 
        echo $value->id;
        ?>
" style="text-decoration:none"> 
                                <div style="height:100%;width:100%">
                                    <?php 
        echo $value->name;
        ?>
                                </div>
                            </a></td>
                    </tr>
                    <?php