本文整理匯總了PHP中PageController::get_numbers_seccion方法的典型用法代碼示例。如果您正苦於以下問題:PHP PageController::get_numbers_seccion方法的具體用法?PHP PageController::get_numbers_seccion怎麽用?PHP PageController::get_numbers_seccion使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PageController
的用法示例。
在下文中一共展示了PageController::get_numbers_seccion方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: PageController
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*
*@version 1.0
*@todo Lieison S.A de C.V
*/
include '../../../Conf/Include.php';
set_dependencies(array("PageController", "AdminController"));
$page = new PageController();
$datos = '<div class="input-group col-md-12">';
$datos .= "<input type='text' class='form-control' value='' placeholder='Titulo' id='seccion_titulo' />";
$datos .= "<br><input type='text' class='form-control' value='' placeholder='Fa fa Icono' id='seccion_icono' />";
$numeros = array_values(array_unique($page->get_numbers_seccion()));
$datos .= '<div class="dropdown">';
$datos .= "<select class='form-control' id='seccion_numero'>";
$datos .= "<option>Seleccione un numero de nivel</option>";
for ($i = 0; $i < 20; $i++) {
if (count($numeros) > $i) {
if ($numeros[$i] == $i + 1) {
$datos .= "<option class='alert alert-warning' value='{$i}'>" . ($i + 1) . " (alerta )Numeros Utilizados </option>";
} else {
$datos .= "<option value='{$i}'>" . ($i + 1) . "</option>";
}
} else {
$datos .= "<option value='{$i}'>" . ($i + 1) . "</option>";
}
}
$datos .= "</select>";