Exemple #1
0
   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>";