Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/video_server_add.tpl.php
Строк: 176
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <script type="text/javascript">
    $(document).ready(function() {
          $("select[name='streaming_method']").change(function() {
              $("div[id^='streaming_container_']").hide();
            $("#streaming_container_" + $(this).val()).show();
        });
        
        $("select[name='lighttpd_secdownload']").change(function() {
              if ($(this).val() == '0') {
                  $("#lighttpd_secdownload_container").hide();
              } else {
                  $("#lighttpd_secdownload_container").show();
              }
        });
    });
    </script>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('video_menu'); ?>
            <div class="content clearfix">
                <?php echo $this->fetch('video_server_menu'); ?>
                <form name="server-add-form" id="server-add-form" method="post" action="<?php echo ADMIN_URL?>/index.php?q=video/server_add">
                    <fieldset>
                        <legend>Server Information</legend>
                        <div class="required">
                            <label for="server_name">Name</label>
                            <input name="server_name" type="text" id="server_name" class="mega" value="<?php echo e($this->server['server_name']); ?>" />
                        </div>
                        <div class="required">
                              <label for="status">Status</label>
                              <input name="status" type="radio" value="1" class="radio"<?php if ($this->server['status'] == '1'): echo ' checked="checked"'; endif; ?> /> Active
                              <input name="status" type="radio" value="0" class="radio"<?php if ($this->server['status'] == '0'): echo ' checked="checked"'; endif; ?> /> Suspended
                        </div>
                    </fieldset>
                    <fieldset>
                          <legend>FTP Credentials</legend>
                          <div class="required">
                              <label for="ftp_host">FTP Host</label>
                              <input name="ftp_host" type="text" id="ftp_host" class="large" value="<?php echo e($this->server['ftp_host']); ?>" />
                          </div>
                          <div class="required">
                              <label for="ftp_port">FTP Port</label>
                              <input name="ftp_port" type="text" id="ftp_port" class="large" value="<?php echo e($this->server['ftp_port']); ?>" />
                          </div>
                          <div class="required">
                              <label for="ftp_username">FTP Username</label>
                              <input name="ftp_username" type="text" id="ftp_username" class="large" value="<?php echo e($this->server['ftp_username']); ?>" />
                          </div>
                          <div class="required">
                              <label for="ftp_password">FTP Password</label>
                              <input name="ftp_password" type="password" id="ftp_password" class="large" value="<?php echo e($this->server['ftp_password']); ?>" />
                          </div>
                          <div class="required">
                              <label for="ftp_root">FTP Root</label>
                              <input name="ftp_root" type="text" id="ftp_root" class="mega" value="<?php echo e($this->server['ftp_root']); ?>" />
                          </div>
                    </fieldset>
                    <fieldset>
                          <legend>Streaming Properties</legend>
                        <div class="required">
                              <label for="streaming_method">Streaming Method</label>
                            <select name="streaming_method" id="streaming_method">
                                  <option value="progressive"<?php if ($this->server['streaming_method'] == 'progressive'): echo ' selected="selected"'; endif; ?>>Progressive</option>
                                <option value="pseudostreaming"<?php if ($this->server['streaming_method'] == 'pseudostreaming'): echo ' selected="selected"'; endif; ?>>Pseudostreaming (lighttpd)</option>
                                <option value="rtmp"<?php if ($this->server['streaming_method'] == 'rtmp'): echo ' selected="selected"'; endif; ?>>RTMP</option>
                            </select>
                        </div>
                        <div id="streaming_container_progressive"<?php if ($this->server['streaming_method'] != 'progressive'): echo ' style="display: none;"'; endif; ?>>
                              <div class="required">
                                  <label for="url">URL</label>
                                  <input name="url" type="text" id="url" class="mega" value="<?php echo e($this->server['url']); ?>" />
                              </div>
                        </div>
                        <div id="streaming_container_pseudostreaming"<?php if ($this->server['streaming_method'] != 'pseudostreaming'): echo ' style="display: none;"'; endif; ?>>
                              <div class="required">
                                  <label for="streaming_server">Streaming Server</label>
                                  <select name="streaming_server" id="streaming_server">
                                      <option value="lighttpd"<?php if ($this->server['streaming_server'] == 'lighttpd'): echo ' selected="selected"'; endif; ?>>Lighttpd</option>
                                      <option value="apache"<?php if ($this->server['streaming_server'] == 'apache'): echo ' selected="selected"'; endif; ?>>Apache</option>
                                      <option value="nginx"<?php if ($this->server['streaming_server'] == 'nginx'): echo ' selected="selected"'; endif; ?>>NGinx</option>
                                  </select>
                              </div>                        
                              <div class="required">
                                  <label for="lighttpd_url">Streaming URL</label>
                                <input name="lighttpd_url" type="text" id="lighttpd_url" class="mega" value="<?php echo e($this->server['lighttpd_url']); ?>" />
                            </div>
                            <div class="required">
                                  <label for="lightt_secdownload">Streaming Secure</label>
                                  <select name="lighttpd_secdownload" id="lighttpd_secdownload">
                                      <option value="0"<?php if ($this->server['lighttpd_secdownload'] == '0'): echo ' selected="selected"'; endif; ?>>No</option>
                                      <option value="1"<?php if ($this->server['lighttpd_secdownload'] == '1'): echo ' selected="selected"'; endif; ?>>Yes</option>
                                  </select>
                            </div>
                            <div id="lighttpd_secdownload_container"<?php if ($this->server['lighttpd_secdownload'] == '0'): echo ' style="display: none;"'; endif; ?>>
                                  <div class="required">
                                      <label for="lighttpd_prefix">Secure Prefix</label>
                                    <input name="lighttpd_prefix" type="text" id="lighttpd_prefix" class="medium" value="<?php echo e($this->server['lighttpd_prefix']); ?>" />
                                </div>
                                <div class="required">
                                      <label for="lighttpd_key">Secure Key</label>
                                    <input name="lighttpd_key" type="text" id="lighttpd_key" class="medium" value="<?php echo e($this->server['lighttpd_key']); ?>" />
                                </div>
                            </div>
                        </div>
                        <div id="streaming_container_rtmp"<?php if ($this->server['streaming_method'] != 'rtmp'): echo ' style="display: none;"'; endif; ?>>
                              <div class="required">
                                  <label for="rtmp_stream">RTMP Stream Location</label>
                                <input name="rtmp_stream" type="text" id="rtmp_stream" class="mega" value="<?php echo e($this->server['rtmp_stream']); ?>" />
                            </div>
                        </div>
                    </fieldset>
                    <div class="submit">
                        <input name="submit_add" type="submit" id="submit_add_server" class="button butDef" value=" Add Server " />
                    </div>
                </form>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама