require_once "../../webassist/security_assist/helper_php.php";
if (!WA_Auth_RulePasses("Logged in to pcms2_users")) {
    WA_Auth_RestrictAccess("../user-admin/login.php");
}
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array('UploadFolder' => "media/thumbs", 'FileName' => "[FileName]", 'DefaultFileName' => "", 'ResizeType' => "2", 'ResizeWidth' => "180", 'ResizeHeight' => "0", 'ResizeFillColor' => "");
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array('UploadFolder' => "media", 'FileName' => "[FileName]", 'DefaultFileName' => "", 'ResizeType' => "0", 'ResizeWidth' => "0", 'ResizeHeight' => "0", 'ResizeFillColor' => "");
// WA_UploadResult1_2 End
// WA_UploadResult1 Params End
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    WA_DFP_UploadFiles("WA_UploadResult1", "ad_image", "0", "", "true", $WA_UploadResult1_Params);
}
// get image types (placed in ad_prioity column)
$cat_image_id = "-1";
mysql_select_db($database_bikes_db, $bikes_db);
$query_cats_image = sprintf("SELECT* FROM advertisingtype");
$cats_image = mysql_query($query_cats_image, $bikes_db) or die(mysql_error());
$row_cats_image = mysql_fetch_assoc($cats_image);
$totalRows_cats_image = mysql_num_rows($cats_image);
// WA DataAssist Insert
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
    $WA_connection = $bikes_db;
    $WA_table = "advertising";
    $WA_sessionName = "WADA_Insert_advertising";
    $WA_redirectURL = "advertising_insert.php?ad_id=[Insert_ID]";
    if (function_exists("rel2abs")) {
</div>
</div>
</div>
          <div class="clearfix"></div>
        </div>
        <div class="clearfix"></div>

<script type="text/javascript">
<!--
var ad_title_Spry = new Spry.Widget.ValidationTextField("ad_title_Spry", "none", { isRequired:true , validateOn:["blur"]});
var ad_expire_Spry = new Spry.Widget.ValidationTextField("ad_expire_Spry", "none", {isRequired: false, validateOn:["blur"]});
//-->
</script><?php 
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
    WA_DFP_UploadFiles("WA_UploadResult1", "ad_image", "1", "", "false", $WA_UploadResult1_Params);
}
?>
<!-- InstanceEndEditable -->
        
        <footer class="footer-admin">
        	
          <div class="copyright">
             	<span class="firstrow"> Mandolins Victoria</span> Admin<br />
             <span class="nextrow">&copy;Copyright 2015 Mandolins Victoria. All Rights Reserved.<a href="http://www.esquarenews.com.au" target="_blank"> Contact Website Developer</a></span><br />
             
            </div>
        </footer>
        <div class="clearfix"></div>

        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
예제 #3
0
$WADAarticles = mysql_query($query_WADAarticles, $bikes_db) or die(mysql_error());
$row_WADAarticles = mysql_fetch_assoc($WADAarticles);
$totalRows_WADAarticles = mysql_num_rows($WADAarticles);
//get article category for main item
$query_article_category = sprintf("SELECT * FROM category WHERE hide = 0 ORDER BY cat_isparent DESC");
$article_category = mysql_query($query_article_category, $bikes_db) or die(mysql_error());
$row_article_category = mysql_fetch_assoc($article_category);
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array('UploadFolder' => "media/", 'FileName' => "[FileName]", 'DefaultFileName' => "" . $row_WADAarticles["articlesThumb"] . "", 'ResizeType' => "0", 'ResizeWidth' => "0", 'ResizeHeight' => "0", 'ResizeFillColor' => "");
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
    WA_DFP_UploadFiles("WA_UploadResult1", "articlesThumb", "0", "", "false", $WA_UploadResult1_Params);
}
// WA DataAssist Update
if (isset($_POST["Update"]) || isset($_POST["Update_x"])) {
    $WA_connection = $bikes_db;
    $WA_table = "articles";
    $WA_redirectURL = "articles_detail.php?articlesID=" . (isset($_POST["WADAUpdateRecordID"]) ? $_POST["WADAUpdateRecordID"] : "") . "" . (isset($_GET["pageNum_WADAarticles"]) ? "&pageNum_WADAarticles=" . intval($_GET["pageNum_WADAarticles"]) : "") . "";
    if (function_exists("rel2abs")) {
        $WA_redirectURL = $WA_redirectURL ? rel2abs($WA_redirectURL, dirname(__FILE__)) : "";
    }
    $WA_keepQueryString = false;
    $WA_indexField = "articlesID";
    $WA_fieldNamesStr = "articlesName|articlesType|artlicesLive|articlesIntro|articlesBody|articlesAuthor|articlesPublishDate|articlesPublication|articlesPDF|articlesThumb";
    $WA_fieldValuesStr = "" . (isset($_POST["articlesName"]) ? $_POST["articlesName"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesType"]) ? $_POST["articlesType"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["artlicesLive"]) ? $_POST["artlicesLive"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesIntro"]) ? $_POST["articlesIntro"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesBody"]) ? $_POST["articlesBody"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesAuthor"]) ? $_POST["articlesAuthor"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesPublishDate"]) && $_POST["articlesPublishDate"] != "" ? date("Y-m-d H:i:s", strtotime($_POST["articlesPublishDate"])) : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesPublication"]) ? $_POST["articlesPublication"] : "") . "" . $WA_AB_Split . "" . (isset($_POST["articlesPDF"]) ? $_POST["articlesPDF"] : "") . "" . $WA_AB_Split . "" . $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"] . "";
    $WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,NULL|',none,''|',none,''|',none,''";
    $WA_comparisonStr = " LIKE | LIKE | LIKE | LIKE | LIKE | LIKE | = | LIKE | LIKE | LIKE ";