function GetRemindNotes() { $dt = OFC_LetterNotes::GetRemindNotes(); echo dataReader::getJsonData($dt->fetchAll(), $dt->rowCount(), $_GET["callback"]); die; }
<?php //----------------------------- // Programmer : SH.Jafarkhani // Date : 1395.07 //----------------------------- require_once 'header.inc.php'; require_once inc_dataGrid; //------------------------------------- require_once 'letter/letter.class.php'; $dt = OFC_LetterNotes::GetRemindNotes(); if ($dt->rowCount() == 0) { die; } //------------------------------------- $dg = new sadaf_datagrid("dg", $js_prefix_address . "letter/letter.data.php?task=GetRemindNotes", "grid_div"); $dg->addColumn("", "NoteID", "", true); $col = $dg->addColumn("شماره نامه", "LetterID", ""); $col->width = 70; $col = $dg->addColumn("عنوان یادداشت", "NoteTitle"); $col->width = 200; $col = $dg->addColumn("شرح", "NoteDesc"); $col = $dg->addColumn("یادآوری", "ReminderDate", GridColumn::ColumnType_date); $col = $dg->addColumn('', '', 'string'); $col->renderer = "NotesStartPage.SeeRender"; $col->width = 40; $col->align = "center"; $dg->emptyTextOfHiddenColumns = true; $dg->EnablePaging = false; $dg->height = 150; $dg->width = 790;