コード例 #1
0
function get_giftcards_manage_table_data_rows($giftcards, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($giftcards->result() as $giftcard) {
        $table_data_rows .= get_giftcard_data_row($giftcard, $controller);
    }
    if ($giftcards->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='11'><div class='warning_message' style='padding:7px;'>" . $CI->lang->line('giftcards_no_giftcards_to_display') . "</div></tr></tr>";
    }
    return $table_data_rows;
}
コード例 #2
0
function get_giftcards_manage_table_data_rows($giftcards, $controller)
{
    $CI =& get_instance();
    $table_data_rows = '';
    foreach ($giftcards->result() as $giftcard) {
        $table_data_rows .= get_giftcard_data_row($giftcard, $controller);
    }
    if ($giftcards->num_rows() == 0) {
        $table_data_rows .= "<tr><td colspan='11'><span class='col-md-12 text-center text-warning' >" . lang('giftcards_no_giftcards_to_display') . "</span></tr>";
    }
    return $table_data_rows;
}
コード例 #3
0
 function get_row()
 {
     $giftcard_id = $this->input->post('row_id');
     $data_row = get_giftcard_data_row($this->Giftcard->get_info($giftcard_id), $this);
     echo $data_row;
 }
コード例 #4
0
ファイル: Giftcards.php プロジェクト: mnapier/opensourcepos
 public function get_row($row_id)
 {
     $data_row = $this->xss_clean(get_giftcard_data_row($this->Giftcard->get_info($row_id), $this));
     echo json_encode($data_row);
 }