HEX
Server: Apache
System: Linux wyse1.wyseservers.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64
User: kochikidswysewor (1061)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: /home/kochikidswysewor/www/wp-content/themes/children-charity-child/template-profile-agent.php=bkp
<?php session_start();
/**
 * @package 	WordPress
 * @subpackage 	Children Charity
 * @version		1.0.7
 * 
 * Template Name: Agent Profile
 * Created by CMSMasters
 * 
 */


get_header();

list($cmsmasters_layout) = children_charity_theme_page_layout_scheme();
$_SESSION['child_id'] = $_POST['child_id'];
$agent_id = get_the_ID();
?>
<section class="dashboard_page">
  <div class="container">
    <div class="tw-row v-gap-none">
      <?php include("agent/sidebar.php"); ?>
      <main class="tw-col-md-9 p-l-50 common_sec">
        <header class="dFlex vCenter">
          <h1 class="sec_title">Profile<?php echo $agent_id; ?></h1>
          <?php include("agent/popup-btn.php"); ?>
        </header>             
        <section class="profile_wrap">
          <div class="editable_wrapper">
            <form>
              <section class="edit_wrap">
                <header class="dFlex p-b-20">
                  <h2 class="p-b-0">Personal Info</h2>
                  <button type="button" class="edit_btn">Edit</button>
                </header>
                <div class="input-holder dFlex">
                  <label>Name:</label>
                  <input type="text" class="form-elem" value="Shyam" name="" id="" title="" readonly />
                </div>
                <div class="input-holder dFlex">
                  <label>Contact No:</label>
                  <input type="text" class="form-elem" value="8086788622" name="" id="" title="" readonly />
                </div>
                <div class="input-holder dFlex">
                  <label>Address:</label>
                  <textarea rows="5" cols="" class="form-elem" value="Shyam" name="" id="" title="" readonly></textarea>
                </div>
                <nav class="input-holder hRight submit_wrap">
                  <input type="submit" value="Update" class="btn btn_sm" />
                </nav>
              </section>
              <section class="edit_wrap">
                <header class="dFlex p-b-20">
                  <h2 class="p-b-0">Banking Info</h2>
                  <button type="button" class="edit_btn">Edit</button>
                </header>
                <div class="input-holder dFlex">
                  <label>Bank:</label>
                  <input type="text" class="form-elem" value="State Bank of India" name="" id="" title="" readonly />
                </div>
                <div class="input-holder dFlex">
                  <label>Branch:</label>
                  <input type="text" class="form-elem" value="MG. Road" name="" id="" title="" readonly />
                </div>
                <div class="input-holder dFlex">
                  <label>IFSC Code:</label>
                  <input type="text" class="form-elem" value="SBIN000011" name="" id="" title="" readonly />
                </div>
                <div class="input-holder dFlex">
                  <label>Account No:</label>
                  <input type="text" class="form-elem" value="XXXX-XXX-4567" name="" id="" title="" readonly />
                </div>
                <nav class="input-holder hRight submit_wrap">
                  <input type="submit" value="Update" class="btn btn_sm" />
                </nav>
              </section>
            </form>
          </div>
          <h2>Change Password</h2>
          <div class="editable_wrapper">
            <form>
              <div class="input-holder dFlex">
                <label>Current Password</label>
                <input type="password" class="form-elem" value="Admin@123" name="" id="" title="" readonly />
              </div>
              <div class="input-holder dFlex">
                <label>New Password</label>
                <input type="password" class="form-elem" value="" name="" id="" title="" readonly />
              </div>
              <div class="input-holder dFlex">
                <label>Confirm New Password</label>
                <input type="password" class="form-elem" value="" name="" id="" title="" readonly />
              </div>
              <nav class="input-holder hRight">
                <input type="submit" value="Update" class="btn btn_sm" />
              </nav>
            </form>
          </div>
        </section>
      </main>
    </div>
  </div>
</section>
<?php 
$post_id = $_SESSION['child_id'];
$user = wp_get_current_user(); 
$user_id = $user->ID;
if ( ! add_post_meta( $post_id, 'agent', $user_id, true ) ) { 
   update_post_meta ( $post_id, 'agent', $user_id );
}
?>
<?php get_footer();