"Escolha..."); $sqlCat = mysql_query("SELECT * FROM site_ofertas_categorias ORDER BY nome ASC"); while($lnCat = mysql_fetch_assoc($sqlCat)) { $categorias[$lnCat['ID']] = $lnCat['nome']; } $camposNaoDeletar = array("ID", "ordem"); $configs = array( array( "nomeCampo" => "categoriaID", "nomeExib" => "Categoria", "require" => true, "htmlType" => "select", "htmlClass" => "col-md-12", "typeSelect" => $categorias ), array( "nomeCampo" => "titulo", "nomeExib" => "Título", "require" => true, "htmlType" => "text", "htmlClass" => "col-md-6", ), array( "nomeCampo" => "subtitulo", "nomeExib" => "Subtítulo", "require" => true, "htmlType" => "text", "htmlClass" => "col-md-6", ), array( "nomeCampo" => "oldprice", "nomeExib" => "Preço antigo", "require" => true, "htmlType" => "text", "htmlClass" => "col-md-6", "aditionalClass" => "maskMoney" ), array( "nomeCampo" => "newprice", "nomeExib" => "Novo preço", "require" => true, "htmlType" => "text", "htmlClass" => "col-md-6", "aditionalClass" => "maskMoney" ), array( "nomeCampo" => "foto", "nomeExib" => "Foto", "require" => true, // true ou false "htmlType" => "file", // Textarea, Text ou File "htmlClass" => "col-md-3 col-lg-2", "width" => array(800, 400), "height" => array(0, 440), "corte" => array("proporcional", "preenchimento"), // proporcional, crop ou preenchimento "prenome" => array("", "mini_") ), ); $galeria = array( "legenda" => 1, "ativo" => false, "width" => 1000, "height" => 0, "corte" => "proporcional", // proporcional, crop ou preenchimento "thumbs" => true, "thumbsConf" => array( "thumb1" => array("corte" => "crop", "w" => 230, "h" => 170, "prenome" => 'mini') ) ); ?>