コード例 #1
0
ファイル: event.php プロジェクト: ivankuzma911/contactMng
                <div class="event_table_head_last">
                        <img src="/help.files/images/<?php 
    echo $records['sort_arrows'][3];
    ?>
.png" onclick="sort('sort_last','ajaxEvent')"  height="15">
                </div>
                <div class="event_table_head_email">Email</div>
                <div class="event_table_head_best">Best phone</div>

            </div>

             <table>
                 <tbody>
                        <?php 
    foreach ($records['db'] as $result) {
        $best_phone = best_phone::get($result);
        ?>
                   <tr class='event_line'><td colspan=6></td></tr>
                            <tr class="tr_content">
                        <td class="td_content_checkboxes">
                            <input id="checkbox" class="checkboxes" type="checkbox" onchange="makeCheckBox(this)" name="checkboxes[]" value="<?php 
        echo $result['id'];
        ?>
">
                         </td>
                                <td class="td_content_first">
                            <?php 
        echo $result['first'];
        ?>
                        </td>
                                <td class="td_content_last">
コード例 #2
0
ファイル: records.php プロジェクト: ivankuzma911/contactMng
 public function edit($id)
 {
     if (isset($_POST['submit_edit'])) {
         $method = 'edit';
         $this->view = new View($this->controller, $method);
         $to_view['errors']['errors'] = $this->model->addContact('edit', $id);
         $to_view['prev_values']['prev_values'] = $this->model->getPrevValues();
         $this->view->set($to_view);
         $this->view->display();
     } else {
         $method = 'edit';
         $this->view = new View($this->controller, $method);
         $record['result'] = $this->model->getRecordById($id);
         $record['best_phone'] = best_phone::get_to_view($record['result']);
         $record['result']['birthday'] = $this->model->editDate($record['result']['birthday']);
         $this->view->set($record);
         $this->view->display();
     }
 }