code update

This commit is contained in:
Devdatt Bhatt 2026-05-23 12:56:19 +00:00
parent bed147e5ba
commit 1a034004f9
1 changed files with 79 additions and 81 deletions

View File

@ -66,95 +66,93 @@ include 'header.php';
<?php endif; ?> <?php endif; ?>
<!-- Company Details --> <!-- Company Details -->
<div class="card wide" style="grid-column: span 2;"> <div class="card wide">
<h3 style="margin-top:0;">General Details</h3> <h3 style="margin-top:0;">General Details</h3>
<div class="grid"> <div class="input-wrap">
<div class="input-wrap"> <div class="input-group">
<div class="input-group"> <input type="text" name="channel_name" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'channel_name')); ?>" required>
<input type="text" name="channel_name" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'channel_name')); ?>" required> <label>Channel Name</label>
<label>Channel Name</label> </div>
</div> <div class="input-group">
<div class="input-group"> <input type="text" name="office_address" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'office_address')); ?>" required>
<input type="text" name="office_address" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'office_address')); ?>" required> <label>Office Address</label>
<label>Office Address</label> </div>
</div> <div class="input-group">
<div class="input-group"> <input type="text" name="office_address_1" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'office_address_1')); ?>" required>
<input type="text" name="office_address_1" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'office_address_1')); ?>" required> <label>Office Address 1</label>
<label>Office Address 1</label> </div>
</div> <div class="input-group">
<div class="input-group"> <input type="text" name="office_address_2" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'office_address_2')); ?>" required>
<input type="text" name="office_address_2" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'office_address_2')); ?>" required> <label>Office Address 2</label>
<label></div> </div>
</div>
<!-- Contact 1 --> <!-- Contact 1 -->
<div class="input-group"> <div class="input-group">
<input type="text" name="contact_name_1" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_name_1')); ?>" required> <input type="text" name="contact_name_1" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_name_1')); ?>" required>
<label>Contact Name 1</label> <label>Contact Name 1</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="contact_number_1" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_number_1')); ?>" required> <input type="text" name="contact_number_1" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_number_1')); ?>" required>
<label>Contact Number 1</label> <label>Contact Number 1</label>
</div> </div>
<!-- Contact 2 --> <!-- Contact 2 -->
<div class="input-group"> <div class="input-group">
<input type="text" name="contact_name_2" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_name_2')); ?>"> <input type="text" name="contact_name_2" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_name_2')); ?>">
<label>Contact Name 2</label> <label>Contact Name 2</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="contact_number_2" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_number_2')); ?>"> <input type="text" name="contact_number_2" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_number_2')); ?>">
<label>Contact Number 2</label> <label>Contact Number 2</label>
</div> </div>
<!-- Contact 3 --> <!-- Contact 3 -->
<div class="input-group"> <div class="input-group">
<input type="text" name="contact_name_3" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_name_3')); ?>"> <input type="text" name="contact_name_3" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_name_3')); ?>">
<label>Contact Name 3</label> <label>Contact Name 3</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="contact_number_3" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_number_3')); ?>"> <input type="text" name="contact_number_3" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'contact_number_3')); ?>">
<label>Contact Number 3</label> <label>Contact Number 3</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="enforcement_officer" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'enforcement_officer')); ?>" required> <input type="text" name="enforcement_officer" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'enforcement_officer')); ?>" required>
<label>Enforcement Officer</label> <label>Enforcement Officer</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="enforcement_officer_contact" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'enforcement_officer_contact')); ?>" required> <input type="text" name="enforcement_officer_contact" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'enforcement_officer_contact')); ?>" required>
<label>EO Contact Details</label> <label>EO Contact Details</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="company_name" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'company_name')); ?>" required> <input type="text" name="company_name" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'company_name')); ?>" required>
<label>Company Name</label> <label>Company Name</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="cin_number" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'cin_number')); ?>"> <input type="text" name="cin_number" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'cin_number')); ?>">
<label>CIN Number</label> <label>CIN Number</label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" name="gstin_number" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'gstin_number')); ?>"> <input type="text" name="gstin_number" placeholder=" " value="<?php echo htmlspecialchars(getValue($saved_data, 'gstin_number')); ?>">
<label>GSTIN Number</label> <label>GSTIN Number</label>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="card wide" style="grid-column: span 2;"> <div class="card wide">
<h3 style="margin-top:0;">Content Details</h3> <h3 style="margin-top:0;">Content Details</h3>
<div class="grid"> <div class="grid">
<div class="dropdown-container"> <div class="dropdown-container">
<span class="dropdown-label">Content Rating</span> <span class="dropdown-label">Content Rating</span>
<div class="dropdown"> <div class="dropdown">
<select name="content_rating" id="content_rating"> <select name="content_rating" id="content_rating">
<?php <?php
$ratings = ['`U` ( Universal )' => 'Universal', '`UA` ( Parental Guidance )' => 'Parental Guidance', '`A` ( Adults Only )' => 'Adults Only', '`S` ( Special )' => 'Special']; $ratings = ['`U` ( Universal )' => 'Universal', '`UA` ( Parental Guidance )' => 'Parental Guidance', '`A` ( Adults Only )' => 'Adults Only', '`S` ( Special )' => 'Special'];
foreach ($ratings as $code => $desc) { foreach ($ratings as $code => $desc) {
$selected = (getValue($saved_data, 'content_rating') === $code) ? 'selected' : ''; $selected = (getValue($saved_data, 'content_rating') === $code) ? 'selected' : '';
echo "<option value=\"" . htmlspecialchars($code) . "\" $selected>" . htmlspecialchars($code) . "</option>"; echo "<option value=\"" . htmlspecialchars($code) . "\" $selected>" . htmlspecialchars($code) . "</option>";
} }
?> ?>
</select> </select>
</div> </div>
</div> </div>
@ -163,13 +161,13 @@ include 'header.php';
<span class="dropdown-label">Content Type</span> <span class="dropdown-label">Content Type</span>
<div class="dropdown"> <div class="dropdown">
<select name="content_type" id="content_type"> <select name="content_type" id="content_type">
<?php <?php
$types = ['News & Information', 'Entertainment', 'Religious & Spiritual', 'Sports & Recreation']; $types = ['News & Information', 'Entertainment', 'Religious & Spiritual', 'Sports & Recreation'];
foreach ($types as $desc) { foreach ($types as $desc) {
$selected = (getValue($saved_data, 'content_type') === $desc) ? 'selected' : ''; $selected = (getValue($saved_data, 'content_type') === $desc) ? 'selected' : '';
echo "<option value=\"" . htmlspecialchars($desc) . "\" $selected>" . htmlspecialchars($desc) . "</option>"; echo "<option value=\"" . htmlspecialchars($desc) . "\" $selected>" . htmlspecialchars($desc) . "</option>";
} }
?> ?>
</select> </select>
</div> </div>
</div> </div>