function form($instance) { //Output admin widget options form extract(shortcode_atts(array('title' => '', 'number_posts' => 5, 'post_type' => 'post'), $instance)); $defaultThemes = array(array("name" => 'Thumbnailed posts', 'user_func' => 'post_thumbnailed'), array("name" => 'Default posts', 'user_func' => 'post_nonthumbnailed')); $themes = apply_filters('tt_recent_posts_widget_theme_list', $defaultThemes); $defaultPostTypes = array(array("name" => 'Post', 'post_type' => 'post')); $custom_widgets = get_the_option('custom_sidebars'); $custom_widgets = split('\\|\\|', $custom_widgets); ?> <p> <label for="<?php echo $this->get_field_id('sidebar'); ?> ">Show Sidebar:</label> <select class="widefat" id="<?php echo $this->get_field_id('sidebar'); ?> " name="<?php echo $this->get_field_name('sidebar'); ?> "> <?php foreach ($custom_widgets as $custom_widget) { if ($custom_widget != "") { ?> <option value="<?php print $custom_widget; ?> " <?php echo selected($instance['sidebar'], $custom_widget); ?> ><?php print $custom_widget; ?> </option> <?php } } ?> </select> </p> <?php }
function render_meta_sidebar($meta) { $sidebars = get_the_option('custom_sidebars'); if ($sidebars) { $sides = split('\\|\\|', $sidebars); $sides = array_merge(array('Default sidebar'), $sides); print '<select name="' . $meta['name'] . '">'; foreach ($sides as $row) { if ($row != "") { print '<option value="' . $row . '"'; if (isset($this->metaValues[$meta['name']]) && $this->metaValues[$meta['name']] == $row) { print ' selected'; } print '>' . $row . '</option>'; } } print '</select>'; } }
include "config/config.php"; include "admin/include/function.php"; include "include/common-scripts.php"; include "include/logincheck.php"; if (isset($_GET["accept"])) { accept_request($_GET["accept"]); header("location:connections.php#connection"); } html("START"); ?> <!-- BEGIN HEAD --> <head> <?php common_head("META"); put_seo(array("title" => get_the_option("website_title") . " | Connections", "desc" => "", "author" => "", "keywords" => "", "image" => "")); common_style("MANDATORY_STYLES"); page_style("CONNECTIONS"); common_style("THEME_STYLES"); common_head("FAVICON"); ?> <body class="page-header-fixed page-sidebar-closed-hide-logo page-sidebar-fixed page-sidebar-closed-hide-logo page-sidebar-closed"> <!-- BEGIN HEADER --> <div class="page-header navbar navbar-fixed-top"> <!-- BEGIN HEADER INNER --> <?php include "include/header.php"; ?> <!-- END HEADER INNER -->
<?php include "config/config.php"; include "include/function.php"; include "include/logincheck.php"; if (isset($_POST['submit'])) { $users = array(); $result = mysql_query("SELECT * FROM `" . USER . "` WHERE `usertype`='8' AND `email`!='' AND `status`='active'"); while ($data = mysql_fetch_array($result)) { array_push($users, $data['email']); } $users = implode(",", $users); $to = $users; $from = get_the_option("website_email"); $message = "<html><body>" . stripslashes($_POST['description']) . "</html></body>"; $subject = stripslashes($_POST['subject']); $headers = "CC: info@ausgro.com\r\n"; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= "From:" . $from; mail($to, $subject, $message, $headers); //echo $to."<br>".$subject."<br>".$message; mysql_query("INSERT INTO `" . EMIAL_HISTORY . "`(`type`, `subject`, `body`, `to`) VALUES ('promotion','{$subject}','{$message}','{$to}')"); header("location:promotional-emails.php?addsuccess"); } ?> <!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
?> <img src="../uploads/<?php echo $data['file']; ?> " height="35" /> <?php } else { ?> <i class="fa fa-file"></i> <?php } ?> </td> <td> <?php echo $url = get_the_option("project_url") . "uploads/" . $data['file']; ?> </td> <td> <a href="download-file.php?url=<?php echo "../uploads/" . $data['file']; ?> " class="btn btn-xs default btn-editable"><i class="fa fa-download"></i> Downlaod</a> </td> </tr> <?php } ?> <?php
<?php if (isset($_POST['submit4'])) { update_option("featuredlist", implode(",", $_POST['my_multi_select11'])); } ?> <form action="" class="form-horizontal form-row-seperated" method="post"> <div class="form-group"> <label class="col-md-6 control-label " style="text-align: left;">Select multiple products</label> </div> <div class="form-body"> <div class="form-group"> <div class="col-md-12"> <?php $products = explode(",", get_the_option("featuredlist")); ?> <select multiple="multiple" class="multi-select" id="my_multi_select11" name="my_multi_select11[]" onchange="selectval()" > <?php $result = mysql_query("SELECT * FROM `ausg_product` WHERE 1"); while ($data = mysql_fetch_array($result)) { ?> <option value="<?php echo $data['slno']; ?> " <?php if (in_array($data['slno'], $products)) { echo "selected"; } ?> ><?php
function copyright_text() { print '<div class="copyrights">' . stripslashes(get_the_option('copyrighttext')) . '</div>'; }
<i class="fa fa-reorder"></i> Edit CMS </div> </div> <div class="portlet-body form"> <form action="" method="post" class="form-horizontal form-bordered"> <div class="form-body"> <div class="form-group"> <label class="control-label col-md-3"><?php echo cms_name($_GET['cms']); ?> </label> <div class="col-md-9"> <textarea name="editor1" class="ckeditor form-control" rows="16"><?php echo get_the_option($_GET['cms']); ?> </textarea> </div> </div> </div> <input type="hidden" name="option" value="<?php echo $_GET['cms']; ?> " /> <div class="form-actions fluid"> <div class="row"> <div class="col-md-12"> <div class="col-md-offset-3 col-md-9">
</div> <div class="form-group"> <label class="col-md-3 control-label">Website Active</label> <div class="col-md-9"> <div class="radio-list"> <label class="radio-inline"> <input type="radio" name="site_active" id="optionsRadios25" <?php if (get_the_option("site_active") == "yes") { echo "checked"; } ?> value="yes" > Active </label> <label class="radio-inline"> <input type="radio" name="site_active" id="optionsRadios26" <?php if (get_the_option("site_active") == "no") { echo "checked"; } ?> value="no" > Inactive </label> </div> </div> </div> </div> <div class="form-actions fluid"> <div class="col-md-offset-3 col-md-9"> <button type="submit" name="submit1" class="btn green">Submit</button> <button type="button" class="btn default">Cancel</button> </div> </div>
UpdateData(USER, $form_data, "WHERE slno = " . $id . ""); log_edit_user($id); echo "1"; sleep(1); } else { echo "0"; } exit; } html("START"); ?> <!-- BEGIN HEAD --> <head> <?php common_head("META"); put_seo(array("title" => get_the_option("website_title") . " | Edit Profile", "desc" => "", "author" => "", "keywords" => "", "image" => "")); common_style("MANDATORY_STYLES"); page_style("PROFILE_EDIT"); common_style("THEME_STYLES"); common_head("FAVICON"); ?> </head> <body class="page-header-fixed page-sidebar-closed-hide-logo page-sidebar-fixed page-sidebar-closed-hide-logo"> <!-- BEGIN HEADER --> <div class="page-header navbar navbar-fixed-top"> <!-- BEGIN HEADER INNER --> <?php include "include/header.php"; ?>