<?php global $wpdb, $signature; $prefix = $wpdb->base_prefix; $error = array(); $id = $_REQUEST['id']; $tempsgod = TempGodDetail($id); $temple_id = $tempsgod[0]->temple_id; $tempsgod = templedetail($temple_id); $temple = $tempsgod[0]->temple; $tempsgod = TempGodDetail($id); $god_id = $tempsgod[0]->god_id; $tempsgod = goddetail($god_id); $god = $tempsgod[0]->god; $querystr = "SELECT * FROM " . $prefix . "temple_god"; $gods = $wpdb->get_results($querystr, OBJECT); if (isset($_POST['registration'])) { $god_id = $_POST['god_id']; if (trim($god_id) == '') { $god_id = 0; } if (count($error) <= 0) { $sql = "UPDATE `" . $prefix . "temple_templesgod` set god_id='{$god_id}' where id='{$id}'"; $result = $wpdb->query($sql); $url = get_option('home') . '/wp-admin/admin.php?page=ManageTemplesGod&update=succ'; echo "<script>window.location='" . $url . "'</script>"; } } ?> <style type="text/css"> .error
<div id="view1"> <h1><?php _e($temple->name); ?> </h1> <?php _e($showimage); $tempgod = TempGodDetail('', " and temple_id='{$temple_id}'"); ?> <div class="archives_content_box"> <div class="lord"><label>Lord </label><p> <?php if (count($tempgod) > 0) { $c = 1; foreach ($tempgod as $tempg) { $god = goddetail($tempg->god_id); if ($c == 1) { _e($god[0]->god); } else { _e(', ' . $god[0]->god); } $c++; } } ?> </p></div> <div class="lord"><label>Urchavar</label><p><?php _e($urchavar); ?> </p></div> <div class="lord"><label> Mother / mother</label><p><?php
_e("God"); ?> </th> <th valign="top" align="left" style="border-left:1px solid #ccc;"><?php _e("Actions"); ?> </th> </tr> <?php $cnt = $limitstart + 1; foreach ($templesgod as $tempsgod) { $templeid = $tempsgod->temple_id; $temple = templedetail($templeid); $temple_name = $temple[0]->temple; $godid = $tempsgod->god_id; $god = goddetail($godid); $god_name = $god[0]->god; ?> <tr> <td valign="top" align="left" style="border-top:1px solid #ccc;"> <?php _e($cnt); ?> </td> <td valign="top" align="left" style="border-top:1px solid #ccc; border-left:1px solid #ccc;"><?php _e($temple_name); ?> </td> <td valign="top" align="left" style="border-top:1px solid #ccc; border-left:1px solid #ccc;"><?php _e($god_name); ?> </td>
<?php global $wpdb, $signature; $prefix = $wpdb->base_prefix; $error = array(); $id = $_REQUEST['id']; $temgod = goddetail($id); $god = $temgod[0]->god; if (isset($_POST['registration'])) { $god = $_POST['god']; if (trim($god) == '') { array_push($error, 'Please enter god.'); } if (count($error) <= 0) { $sql = "UPDATE `" . $prefix . "temple_god` set god='{$god}' where id='{$id}'"; $result = $wpdb->query($sql); $url = get_option('home') . '/wp-admin/admin.php?page=ManageGod&update=succ'; echo "<script>window.location='" . $url . "'</script>"; } } ?> <link href="<?php echo get_option('home'); ?> /wp-content/plugins/temple/css/pagedesign.css" rel="stylesheet" /> <script type="text/javascript" src="<?php echo get_option('home'); ?> /wp-content/plugins/temple/js/validate.js"></script> <script type="text/javascript"> jQuery(document).ready(function(){