本文整理汇总了PHP中core::get_all方法的典型用法代码示例。如果您正苦于以下问题:PHP core::get_all方法的具体用法?PHP core::get_all怎么用?PHP core::get_all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core
的用法示例。
在下文中一共展示了core::get_all方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
Number
</div>
<?php
}
?>
<legend>Send Broadcast</legend>
<div class="balloon"><div class='padding20'>
<form method='POST' action='' charset='UTF-8'>
<label>Hilangkan centang untuk nomor yang tidak ingin dikirim</label>
<hr> <?php
$query = core::get_all('pbk', 'gammu', 'Name');
?>
Total Phone Number : <?php
echo $query->num_rows();
?>
<div style='width:100%;height:300px;overflow:auto;border:1px solid #CCC;padding:10px 0px 10px 10px ;'>
<?php
foreach ($query->result() as $row) {
?>
<?php
$group = core::get_where('pbk_groups', 'gammu', array('ID' => $row->GroupID));
?>
<?php
$groups = $group->row();
?>
示例2:
if ($this->uri->segment(3) == 'rows') {
$per_page = $this->uri->segment(4);
$segment = 5;
$url = 'sending/index/rows/' . $this->uri->segment(4) . '/';
} else {
$per_page = 25;
$segment = 3;
$url = 'sending/index';
}
?>
<div class='table-responsive margin-table'>
<table class='table'>
<caption class='text-right'>
<?php
$num_rows = core::get_all('sentitems', 'gammu')->num_rows();
?>
<small>Total data : <u class='text-error'><?php
echo $num_rows;
?>
</u></small>
</caption><thead>
<tr>
<th style='width:20px;'>#</th>
<th>To</th>
<th>Message</th>
<th>Date</th>
<th>Status</th>
<th style='text-align:center;width:100px;'>Aksi</th>
</tr></thead>
<tbody>
示例3:
if ($this->uri->segment(3) == 'rows') {
$per_page = $this->uri->segment(4);
$segment = 5;
$url = 'pbk/index/rows/' . $this->uri->segment(4) . '/';
} else {
$per_page = 25;
$segment = 3;
$url = 'pbk/index';
}
?>
<div class='table-responsive margin-table'>
<table class='table'>
<caption class='text-right'>
<?php
$num_rows = core::get_all('pbk', 'gammu')->num_rows();
?>
<small>Total data : <u class='text-error'><?php
echo $num_rows;
?>
</u></small>
</caption><thead>
<tr>
<th style='width:20px;'>No</th>
<th>Name</th>
<th>Number</th>
<th>Group</th>
<th style='text-align:center;width:100px;'>Aksi</th>
</tr></thead>
<tbody>
<?php
示例4: base_url
<?php
include 'layout.php';
?>
<form method='POST' action='<?php
echo base_url('send_message/send_by_group');
?>
' charset='UTF-8'>
<label>Group</label>
<?php
$query = core::get_all('pbk_groups', 'gammu');
?>
<select name='group' class="span3">
<option value='0'>No Group</option>
<?php
foreach ($query->result() as $row) {
?>
<option value='<?php
echo $row->ID;
?>
'><?php
echo $row->Name;
?>
</option>
<?php
}
示例5:
if ($this->uri->segment(3) == 'rows') {
$per_page = $this->uri->segment(4);
$segment = 5;
$url = 'outbox/index/rows/' . $this->uri->segment(4) . '/';
} else {
$per_page = 25;
$segment = 3;
$url = 'outbox/index';
}
?>
<div class='table-responsive margin-table'>
<table class='table table-condensed'>
<caption class='text-right'>
<?php
$num_rows = core::get_all('outbox', 'gammu')->num_rows();
?>
<small>Total data : <u class='text-error'><?php
echo $num_rows;
?>
</u></small>
</caption><thead>
<tr>
<th style='width:20px;'>No</th>
<th>To</th>
<th>Message</th>
<th>Date</th>
<th style='text-align:center;width:100px;'>Aksi</th>
</tr></thead>
<tbody>
<?php
示例6: array
$query = core::get_where('pbk', 'gammu', array('ID' => $this->uri->segment(3)), 1);
$row = $query->row_array();
?>
<input type='hidden' name='id' value='<?php
echo $row['ID'];
?>
' >
<!-- start GroupID -->
<div class='control-group <?php
echo form_error('GroupID') ? 'error' : '';
?>
'>
<label class='control-label' ><strong>Group</strong></label>
<div class='controls'>
<?php
$group = core::get_all('pbk_groups', 'gammu');
?>
<select name='GroupID' class='span5'>
<option value='0'>No Group</option>
<?php
foreach ($group->result() as $rows) {
?>
<option value='<?php
echo $rows->ID;
?>
' <?php
echo $row['GroupID'] == $rows->ID ? "selected" : "";
?>
><?php
echo $rows->Name;
?>
示例7:
if ($this->uri->segment(3) == 'rows') {
$per_page = $this->uri->segment(4);
$segment = 5;
$url = 'admin/index/rows/' . $this->uri->segment(4) . '/';
} else {
$per_page = 25;
$segment = 3;
$url = 'admin/index';
}
?>
<div class='table-responsive margin-table'>
<table class='table table-condensed'>
<caption class='text-right'>
<?php
$num_rows = core::get_all('admin', 'gammu')->num_rows();
?>
<small>Total data : <u class='text-error'><?php
echo $num_rows;
?>
</u></small>
</caption><thead>
<tr>
<th style='width:20px;'>No</th>
<th>Username</th>
<th style='width:150px;'>Created</th>
<th style='text-align:center;width:100px;'>Aksi</th>
</tr></thead>
<tbody>
<?php
$i = $this->uri->segment($segment) + 1;
示例8: foreach
if ($this->uri->segment(3) == 'rows') {
$per_page = $this->uri->segment(4);
$segment = 5;
$url = 'pbk_group/index/rows/' . $this->uri->segment(4) . '/';
} else {
$per_page = 25;
$segment = 3;
$url = 'pbk_group/index';
}
?>
<div class='table-responsive margin-table'>
<table class='table'>
<caption class='text-right'>
<?php
$num_rows = core::get_all('pbk_groups', 'gammu')->num_rows();
?>
<small>Total data : <u class='text-error'><?php
echo $num_rows;
?>
</u></small>
</caption><thead>
<tr>
<th style='width:20px;'>#</th>
<th>Name</th>
<th style='text-align:center;width:100px;'>Aksi</th>
</tr></thead>
<tbody>
<?php
$i = $this->uri->segment($segment) + 1;
foreach (core::get_all_pagination('pbk_groups', 'gammu', $per_page, $segment, $url)->result() as $row) {