<div id="content-body-action-dummy-parent"> <div id="content-body-action"> <div id="content-body-action-tools"> </div> <div style="margin-right: 80px; height: 100%;"> <div id="content-body-action-form"> <div id="form-header"> <font id="section_heading"></font> </div> <div id="form-body"> <!-- form loads here --> <?php include '../forms/28.php'; echo get_form_html(1, 1); ?> </div> </div> </div> </div> </div> </div> <footer> Copyright © Royal Piknik Traders LLP <?php echo date('Y'); ?> </footer> </div>
if (isset($_POST['menu_item_id']) and !empty($_POST['menu_item_id'])) { $form_id = $_POST['menu_item_id']; $id = $_POST['id']; if (isset($_POST['page']) and !empty($_POST['page'])) { $page = $_POST['page']; } else { $page = 1; } //pagination constants $limit = 15; $adjacents = 5; //form file name $file_name = "../../forms/" . $form_id . ".php"; if (file_exists($file_name)) { include $file_name; $data = get_form_html($form_id, $id, $page, $limit, $adjacents); $tools = get_form_tools_html($form_id); $responce = array('status' => 'success', 'error' => '', 'data' => array('form' => $data, 'tools' => $tools)); } else { $responce = array('status' => 'failed', 'error' => 'Some server error occured, File not exists file name ' . $file_name, 'data' => array()); } } else { $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array()); } } else { $responce = array('status' => 'failed', 'error' => 'Session expired', 'data' => array()); } echo json_encode($responce); function pagination($limit, $adjacents, $rows, $page) { $pagination = '';