if ($result['result']) { echo '<br/>(' . $result['result'] . ')'; } else { ?> <img src='images/unverified_icon.png'/> <?php } ?> </a> </td> <td><?php echo $result['post_date'] . ' ' . $result['post_time']; ?> </td> <td><a href='javascript:if(confirm("Bạn có chắc chắn ?")) window.location.href="<?php echo vcn_Url('delete-history', $result); ?> ";'>Xoá</a></td> </tr> <?php } } ?> </table> <?php } else { ?> <table cellpadding='1' border='1' width='100%' class='customerslist'> <tr class='table-title'> <td><input type='checkbox'/></td> <td>ID</td>
} //data if (_GET('edit')) { $data['result'] = get(_GET('edit')); //get question answers if (!count($data['result'])) { show_error('Not found', 'Không tồn tại dữ liệu.'); } } extract($data); //print_r($result); if (isset($result)) { ?> <p> <a href='javascript:;' class='button_silver_square radius-1 padding3' onclick='if(confirm("Are you sure?")) location.href="<?php echo vcn_Url('delete-qdata', $result[0]['id']); ?> "'>Xoá câu hỏi này</a> </p><hr/> <?php } ?> <form method='POST' name='vcn_qform' class='vcn_qform frmlayout' action="nhap-cau-hoi.php" onsubmit='return submit_vcn_form(this)' accept-charset="utf-8"> <!-- hidden --> <input type='hidden' name='qcount'/> <input type='hidden' name='modify' value='<?php echo isset($result) ? $result[0]['id'] : ''; ?> '/> <input type='hidden' name='modify_answers' value=''/> <input type='hidden' name='deletes'><!-- delete exists answers -->