This commit is contained in:
devdatt 2025-12-02 20:32:15 +05:30
parent 867cf33443
commit 7e6781d3b9
1 changed files with 40 additions and 37 deletions

View File

@ -354,27 +354,28 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
</select> </select>
</div> </div>
</div> </div>
<div class="card wide">
<?php for ($i = 1; $i <= 11; $i++): <?php for ($i = 1; $i <= 11; $i++):
$r = $data['rtmp_multiple'][$i]; $r = $data['rtmp_multiple'][$i];
?> ?>
<div class="input-container"> <div class="input-container">
<div class="input-group"> <div class="input-group">
<input type="text" id="rtmp_<?php echo $i; ?>" name="rtmp_<?php echo $i; ?>" placeholder="rtmp" value="<?php echo htmlspecialchars($r['url']); ?>"> <input type="text" id="rtmp_<?php echo $i; ?>" name="rtmp_<?php echo $i; ?>" placeholder="rtmp" value="<?php echo htmlspecialchars($r['url']); ?>">
<label for="rtmp_<?php echo $i; ?>">RTMP URL <?php echo $i; ?></label> <label for="rtmp_<?php echo $i; ?>">RTMP URL <?php echo $i; ?></label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" id="rtmp_<?php echo $i; ?>_name" name="rtmp_<?php echo $i; ?>_name" placeholder="Rtmp Name <?php echo $i; ?>" value="<?php echo htmlspecialchars($r['name']); ?>"> <input type="text" id="rtmp_<?php echo $i; ?>_name" name="rtmp_<?php echo $i; ?>_name" placeholder="Rtmp Name <?php echo $i; ?>" value="<?php echo htmlspecialchars($r['name']); ?>">
<label for="rtmp_<?php echo $i; ?>_name">Rtmp Name <?php echo $i; ?></label> <label for="rtmp_<?php echo $i; ?>_name">Rtmp Name <?php echo $i; ?></label>
</div> </div>
<div class="checkbox-group"> <div class="checkbox-group">
<input type="checkbox" id="rtmp_<?php echo $i; ?>_enable" name="rtmp_<?php echo $i; ?>_enable" <?php if (!empty($r['enabled'])) echo 'checked'; ?>> <input type="checkbox" id="rtmp_<?php echo $i; ?>_enable" name="rtmp_<?php echo $i; ?>_enable" <?php if (!empty($r['enabled'])) echo 'checked'; ?>>
<label for="rtmp_<?php echo $i; ?>_enable">Enable or Disable</label> <label for="rtmp_<?php echo $i; ?>_enable">Enable or Disable</label>
</div>
</div> </div>
<?php endfor; ?>
<div style="text-align:center; width:100%; margin-top:12px;">
<button type="submit" name="rtmp" style="background:#c00;color:#fff;padding:10px 20px;border:none;font-weight:bold;border-radius:6px;">Save RTMP</button>
</div> </div>
<?php endfor; ?>
<div style="text-align:center; width:100%; margin-top:12px;">
<button type="submit" name="rtmp" style="background:#c00;color:#fff;padding:10px 20px;border:none;font-weight:bold;border-radius:6px;">Save RTMP</button>
</div> </div>
</div> </div>
@ -470,27 +471,29 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
<label for="output_audio_bit_rate">Bit Rate :</label> <label for="output_audio_bit_rate">Bit Rate :</label>
</div> </div>
</div> </div>
<div class="card wide">
<?php for ($i = 1; $i <= 11; $i++): <?php for ($i = 1; $i <= 11; $i++):
$s = $data['srt_multiple'][$i]; $s = $data['srt_multiple'][$i];
?> ?>
<div class="input-container"> <div class="input-container">
<div class="input-group"> <div class="input-group">
<input type="text" id="srt_<?php echo $i; ?>" name="srt_<?php echo $i; ?>" placeholder="srt" value="<?php echo htmlspecialchars($s['url']); ?>"> <input type="text" id="srt_<?php echo $i; ?>" name="srt_<?php echo $i; ?>" placeholder="srt" value="<?php echo htmlspecialchars($s['url']); ?>">
<label for="srt_<?php echo $i; ?>">SRT URL <?php echo $i; ?></label> <label for="srt_<?php echo $i; ?>">SRT URL <?php echo $i; ?></label>
</div> </div>
<div class="input-group"> <div class="input-group">
<input type="text" id="srt_<?php echo $i; ?>_name" name="srt_<?php echo $i; ?>_name" placeholder="Srt Name <?php echo $i; ?>" value="<?php echo htmlspecialchars($s['name']); ?>"> <input type="text" id="srt_<?php echo $i; ?>_name" name="srt_<?php echo $i; ?>_name" placeholder="Srt Name <?php echo $i; ?>" value="<?php echo htmlspecialchars($s['name']); ?>">
<label for="srt_<?php echo $i; ?>_name">SRT Name <?php echo $i; ?></label> <label for="srt_<?php echo $i; ?>_name">SRT Name <?php echo $i; ?></label>
</div> </div>
<div class="checkbox-group"> <div class="checkbox-group">
<input type="checkbox" id="srt_<?php echo $i; ?>_enable" name="srt_<?php echo $i; ?>_enable" <?php if (!empty($s['enabled'])) echo 'checked'; ?>> <input type="checkbox" id="srt_<?php echo $i; ?>_enable" name="srt_<?php echo $i; ?>_enable" <?php if (!empty($s['enabled'])) echo 'checked'; ?>>
<label for="srt_<?php echo $i; ?>_enable">Enable or Disable</label> <label for="srt_<?php echo $i; ?>_enable">Enable or Disable</label>
</div>
</div> </div>
<?php endfor; ?>
<div style="text-align:center; width:100%; margin-top:12px;">
<button type="submit" name="srt" style="background:#c00;color:#fff;padding:10px 20px;border:none;font-weight:bold;border-radius:6px;">Save SRT</button>
</div> </div>
<?php endfor; ?>
<div style="text-align:center; width:100%; margin-top:12px;">
<button type="submit" name="srt" style="background:#c00;color:#fff;padding:10px 20px;border:none;font-weight:bold;border-radius:6px;">Save SRT</button>
</div> </div>
</div> </div>