예제 #1
0
            echo "\t</center></td>\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t<td width='10%' align='center'>" . $row['quanity'] . "</td>\r\n\t\t\t\t\t\t\t\t\t<td width='10%' align='center'>" . $row['wp_cost'] . "</a></td>\r\n\t\t\t\t\t\t\t\t\t<td width='15%' align='center'>\r\n\t\t\t\t\t\t\t\t\t";
            if ($row['realms'] == 0) {
                echo "All";
            } else {
                echo $row['realms'];
            }
            echo "\r\n\t\t\t\t\t\t\t\t\t<td width='15%' align='center'><a href='?p=admin&sub=shop&id=" . $row['id'] . "'>Edit / Del</a></td>\r\n\t\t\t\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t";
        }
    }
    ?>
				</table>
				<div id="pg">
				<?php 
    // If there is going to be more then 1 page, then show page nav at the bottom
    if ($totalrows > $limit) {
        admin_paginate($totalrows, $limit, $page, '?p=admin&sub=shop');
    }
    ?>
				</div>
			<br />
			<div class="buttonrow-border">								
				<center><button><span><?php 
    echo $lang['add_new_shop_package'];
    ?>
</span></button></center>			
			</div>
			</form>
		</div>
	</div>
<?php 
}
예제 #2
0
        ?>
</td>
					<td align="center"><?php 
        echo $row['joindate'];
        ?>
</td>
					<td align="center"><?php 
        echo $row['locked'];
        ?>
</td>
				</tr><?php 
    }
    ?>
			</table>
			<div id="pg">
			<?php 
    // If there is going to be more then 1 page, then show page nav at the bottom
    if ($totalrows > $limit) {
        if (isset($_GET['sortby'])) {
            admin_paginate($totalrows, $limit, $page, '?p=admin&sub=users&sortby=' . $_GET['sortby']);
        } else {
            admin_paginate($totalrows, $limit, $page, '?p=admin&sub=users');
        }
    }
    ?>
			</div>
		</form>
		</div>
	</div>
<?php 
}
예제 #3
0
 function pengampu($semester_tipe = null, $tahun_akademik = null)
 {
     $data = array();
     /*
     	jika null maka
     		jika session ada maka gunakan session
     		jika session null maka default
     	else
     		ubah session
     */
     //echo $this->session->userdata('pengampu_semester_tipe');
     //echo $this->session->userdata('pengampu_tahun_akademik');
     if (!$this->session->userdata('pengampu_semester_tipe') && !$this->session->userdata('pengampu_tahun_akademik')) {
         $this->session->set_userdata('pengampu_semester_tipe', 1);
         $this->session->set_userdata('pengampu_tahun_akademik', '2011-2012');
     }
     if ($semester_tipe == null && $tahun_akademik == null) {
         $semester_tipe = $this->session->userdata('pengampu_semester_tipe');
         $tahun_akademik = $this->session->userdata('pengampu_tahun_akademik');
     } else {
         $this->session->set_userdata('pengampu_semester_tipe', $semester_tipe);
         $this->session->set_userdata('pengampu_tahun_akademik', $tahun_akademik);
         $semester_tipe = $this->session->userdata('pengampu_semester_tipe');
         $tahun_akademik = $this->session->userdata('pengampu_tahun_akademik');
     }
     $data['page_title'] = 'Modul Pengampu';
     $url = base_url() . 'web/pengampu/' . $semester_tipe . '/' . $tahun_akademik . '/';
     $res = $this->m_pengampu->num_page($semester_tipe, $tahun_akademik);
     $per_page = 20;
     $config = admin_paginate($url, $res, $per_page, 5);
     $this->pagination->initialize($config);
     $this->m_pengampu->limit = $per_page;
     if ($this->uri->segment(5) == TRUE) {
         $this->m_pengampu->offset = $this->uri->segment(5);
     } else {
         $this->m_pengampu->offset = 0;
     }
     $data['start_number'] = $this->m_pengampu->offset;
     //	"ORDER BY b.nama,a.kelas";
     $this->m_pengampu->sort = 'b.nama,a.kelas';
     $this->m_pengampu->order = 'ASC';
     $data['rs_pengampu'] = $this->m_pengampu->get($semester_tipe, $tahun_akademik);
     //$data['semester_tipe'] = $semester_tipe;
     //$data['tahun_akademik'] = $tahun_akademik;
     if ($this->input->post('ajax')) {
         $this->load->view('pengampu_ajax', $data);
     } else {
         $data['page_name'] = 'pengampu';
         $this->render_view($data);
     }
 }
</td>
						<td align="center"><?php 
        echo $Character->charInfo['class'][$row['class']];
        ?>
</td>
						<td align="center"><?php 
        echo $Zone->getZoneName($row['zone']);
        ?>
</td>
					</tr>
			<?php 
    }
    ?>
			</table>
			<div id="pg">
			<?php 
    // If there is going to be more then 1 page, then show page nav at the bottom
    if ($totalrows > $limit) {
        if (isset($_GET['sort'])) {
            admin_paginate($totalrows, $limit, $page, '?p=admin&sub=chartools&sort=' . $_GET['sort']);
        } else {
            admin_paginate($totalrows, $limit, $page, '?p=admin&sub=chartools');
        }
    }
    ?>
			</div>
		</form>
		</div>
	</div>
<?php 
}