routeSQL : Create a beautiful internal CSS for editing an entry (without external dependency)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2017 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
50
routeSQL.php
50
routeSQL.php
@@ -535,6 +535,31 @@ echo $content;
|
||||
unset ($_SESSION["domframework"]["routeSQL"]["values"]);
|
||||
}
|
||||
|
||||
if ($this->enableInternalCSS === true)
|
||||
{
|
||||
// CSS is in edit an id too !
|
||||
$content .= "<style type='text/css' scoped='scoped'>\n";
|
||||
$content .= "#form .col-sm-2 { float:left; width: 16.66666667%; padding-left:15px;padding-right:15px;};\n";
|
||||
$content .= "#form .col-sm-10 {float:left; width: 83.33333333%; }\n";
|
||||
$content .= "#form .col-sm-12 { width: 100%; }\n";
|
||||
$content .= "#form input[type='submit'] { width:93%; margin-left:auto;margin-right:auto}\n";
|
||||
$content .= "#form .btn-primary { color: #fff; background-color: #428bca; border-color: #357ebd; }\n";
|
||||
|
||||
|
||||
$content .= ".help-block { margin-left:16.7%;display: block; color:#a94442;} \n";
|
||||
$content .= "#form input[type='text'] { background-color:#fff;}\n";
|
||||
$content .= "#form .has-error label { color:#a94442; }\n";
|
||||
$content .= "#form .has-error .form-control { border-color:#a94442; box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset; }\n";
|
||||
$content .= ".form-group { margin-bottom: 15px; }\n";
|
||||
$content .= ".form-horizontal .control-label { text-align: right; }\n";
|
||||
$content .= "label { display: inline-block; font-weight: 700; }\n";
|
||||
$content .= ".form-control { display: block; border-radius: 4px;padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; width: 80%; }\n";
|
||||
$content .= "* { box-sizing: border-box;}\n";
|
||||
$content .= "button, input, optgroup, select, textarea { margin:0px 0px 0px 0px; }\n";
|
||||
$content .= "</style>\n";
|
||||
// CSS is in edit an id too !
|
||||
}
|
||||
|
||||
$f = new form ();
|
||||
$fields = array ();
|
||||
foreach ($titles as $key=>$val)
|
||||
@@ -646,6 +671,31 @@ echo $content;
|
||||
unset ($_SESSION["domframework"]["routeSQL"]["values"]);
|
||||
}
|
||||
|
||||
if ($this->enableInternalCSS === true)
|
||||
{
|
||||
// CSS is in add too !
|
||||
$content .= "<style type='text/css' scoped='scoped'>\n";
|
||||
$content .= "#form .col-sm-2 { float:left; width: 16.66666667%; padding-left:15px;padding-right:15px;};\n";
|
||||
$content .= "#form .col-sm-10 {float:left; width: 83.33333333%; }\n";
|
||||
$content .= "#form .col-sm-12 { width: 100%; }\n";
|
||||
$content .= "#form input[type='submit'] { width:93%; margin-left:auto;margin-right:auto}\n";
|
||||
$content .= "#form .btn-primary { color: #fff; background-color: #428bca; border-color: #357ebd; }\n";
|
||||
|
||||
|
||||
$content .= ".help-block { margin-left:16.7%;display: block; color:#a94442;} \n";
|
||||
$content .= "#form input[type='text'] { background-color:#fff;}\n";
|
||||
$content .= "#form .has-error label { color:#a94442; }\n";
|
||||
$content .= "#form .has-error .form-control { border-color:#a94442; box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset; }\n";
|
||||
$content .= ".form-group { margin-bottom: 15px; }\n";
|
||||
$content .= ".form-horizontal .control-label { text-align: right; }\n";
|
||||
$content .= "label { display: inline-block; font-weight: 700; }\n";
|
||||
$content .= ".form-control { display: block; border-radius: 4px;padding-top: 6px; padding-right: 12px; padding-bottom: 6px; padding-left: 12px; width: 80%; }\n";
|
||||
$content .= "* { box-sizing: border-box;}\n";
|
||||
$content .= "button, input, optgroup, select, textarea { margin:0px 0px 0px 0px; }\n";
|
||||
$content .= "</style>\n";
|
||||
// CSS is in add too !
|
||||
}
|
||||
|
||||
$f = new form ();
|
||||
$fields = array ();
|
||||
foreach ($titles as $key=>$val)
|
||||
|
||||
Reference in New Issue
Block a user