本文整理匯總了PHP中CSS::styles方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSS::styles方法的具體用法?PHP CSS::styles怎麽用?PHP CSS::styles使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSS
的用法示例。
在下文中一共展示了CSS::styles方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: switch
$list2 = $_POST['list2'];
}
if (isset($_POST['list3'])) {
$list3 = $_POST['list3'];
}
if (isset($_POST['list4'])) {
$list4 = $_POST['list4'];
}
if (isset($_POST['list5'])) {
$list5 = $_POST['list5'];
}
$value = '';
switch ($html_element) {
case 'text':
$data_html = $obj->text($var_name, $label, $value, $div_name);
$data_css = $obj_css->styles($var_name, $color, $width, $height, $x_position, $y_position, $z_index, $font_size, $font_color);
$obj->write_to_file($data_html, $html_file_name, $css_file_name, $data_css);
$insert = "INSERT INTO `CMS`.`html_css` (`ID`, `HTML`, `CSS`, `FORM_ID`,`STATUS`, `NAME`) VALUES (NULL, '{$data_html}', '{$data_css}', {$index_of_form},'1', '{$label}');";
$result = $conn->query($insert);
$ID = mysqli_insert_id($conn);
$insert_div_data = "INSERT INTO `CMS`.`divs` (`ID`, `ELEMENT`, `HTML_CSS_ID`) VALUES (NULL, '{$data_html}',{$ID});";
$result = $conn->query($insert_div_data);
echo 'HTML & CSS Code created successfully<br/>';
break;
case 'text_area':
$data_html = $obj->text_area($var_name, $label, $value, $div_name);
$data_css = $obj_css->styles($var_name, $color, $width, $height, $x_position, $y_position, $z_index, $font_size, $font_color);
$obj->write_to_file($data_html, $html_file_name, $css_file_name, $data_css);
$insert = "INSERT INTO `CMS`.`html_css` (`ID`, `HTML`, `CSS`, `FORM_ID`,`STATUS`, `NAME`) VALUES (NULL, '{$data_html}', '{$data_css}', {$index_of_form},'1', '{$label}');";
$result = $conn->query($insert);
$ID = mysqli_insert_id($conn);