예제 #1
0
            $i_headingID = 0;
        }
        if (isset($_POST['displayOrder'])) {
            $i_displayOrder = intval($_POST["displayOrder"]);
        } else {
            $i_displayOrder = 0;
        }
        if (isset($_POST['contentTitle'])) {
            $s_contentTitle = trim($_POST["contentTitle"]);
        } else {
            $s_contentTitle = "";
        }
        if (isset($_POST['textContent'])) {
            $s_textContent = trim($_POST["textContent"]);
        } else {
            $s_textContent = "";
        }
        $s_sql = "insert into cms.dyn_howto_content (howtoID, chapterID, headingID, displayOrder, howtoContent, contentTitle)\r\n\tselect {$i_howtoID}, {$i_chapterID}, {$i_headingID}, {$i_displayOrder}, '{$s_textContent}', '{$s_contentTitle}';";
        $q_data = mysql_query($s_sql);
        $s_error = "";
        if (!$q_data) {
            $s_error = mysql_error();
        }
        include "howto_c.php";
        $objhowTo = new howTo();
        $s_html = $objhowTo->outputHowTo();
        break;
    case "getdetail":
        break;
}
echo $s_html;
예제 #2
0
<style type="text/css"> 
	.body {background-color: #F1EFDE;font-family: sans-serif;font-size: .8em}
	.cell {text-align: right;}
	.odd {padding: 2px;background-color: #99A68C;}
	.even {padding: 2px;background-color: #8A8A6A;}
	.accentrow {padding: 2px;background-color: #ACACAC;}
</style> 
<meta name="generator" content="<?php 
echo $s_title;
?>
" /> 
<title><?php 
echo $s_title;
?>
</title>
</head>
<body class="body">
<?php 
echo '<h3>' . $s_title . '<h3>' . $g_break;
echo '<br />' . $g_break;
echo '<span id="span_chapter" name="span_chapter">' . $s_chapterText . '</span>&nbsp;<span id="span_heading" name="span_heading">' . $s_headingText . '</span><br />' . $g_break;
echo '<input id="displayOrder" name="displayOrder" size="3"><br />' . $g_break;
echo '<input id="contentTitle" name="contentTitle" size="74" maxlength="500"><br />' . $g_break;
echo '<textarea id="textContent" name="textContent" rows="10" cols="60"></textarea><br />' . $g_break;
echo '<button id="button_click" name="button_click" value="Save" onclick="js_save();">Save</button><br />' . $g_break;
echo '<hr />';
echo '<div id="div_output" name="div_output">';
echo $objhowTo->outputHowTo($i_howtoID);
echo '</div>';
echo '</body>' . $g_break;
echo '</html>' . $g_break;