0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 13.59.35.116


Current Path : /var/www/html/admission/html_modules/
Upload File :
Current File : /var/www/html/admission/html_modules/sendSMSExcel.html

<div class="card">
  <h5 class="card-header">Upload Lead SMS Details</h5>
  <div class="card-body">
    <nav>
      <div class="nav nav-tabs" id="nav-tab" role="tablist">
        <button
          class="nav-link active"
          id="nav-home-tab"
          data-bs-toggle="tab"
          data-bs-target="#nav-home"
          type="button"
          role="tab"
          aria-controls="nav-home"
          aria-selected="true"
        >
          Upload Excel
        </button>
        <button
          class="nav-link"
          id="nav-profile-tab"
          data-bs-toggle="tab"
          data-bs-target="#nav-profile"
          type="button"
          role="tab"
          aria-controls="nav-profile"
          aria-selected="false"
          onclick="loadSmsData()"
        >
          View / Send SMS
        </button>
        <!-- <button
          class="nav-link"
          id="nav-contact-tab"
          data-bs-toggle="tab"
          data-bs-target="#nav-contact"
          type="button"
          role="tab"
          aria-controls="nav-contact"
          aria-selected="false"
        >
          Contact
        </button> -->
      </div>
    </nav>
    <div class="tab-content" id="nav-tabContent">
      <div
        class="tab-pane fade show active"
        id="nav-home"
        role="tabpanel"
        aria-labelledby="nav-home-tab"
      >
        <div class="row mt-3 mb-3">
          <div class="col-sm-12">
            <a
              href="https://universitysolutions.in/admission/fileformat/lead_send_sms.csv"
              target="_blank"
              >Download SMS CSV Format</a
            >
          </div>
        </div>
        <div class="row mb-3">
          <div class="col-sm-4">
            <label for="updtype">Type</label>
            <select class="form-select" id="updtype" onchange="getUploadType()">
              <option value="mob">With Variables</option>
              <option value="msg">With Message</option>
            </select>
          </div>
        </div>
        <div class="row mb-3">
          <div class="col-sm-4">
            <label for="ftemplate">Template</label>
            <select
              class="form-select"
              id="ftemplate"
              onchange="getMessage()"
            ></select>
          </div>
        </div>
        <div class="row mb-3">
          <div class="col-sm-4">
            <label for="fmessage">Message</label>
            <textarea
              class="form-control"
              id="fmessage"
              style="height: 100px"
              disabled
            ></textarea>
            <!-- <text id="textlen" style="color: red"></text><br />
            <text id="msglen" style="color: red"></text> -->
          </div>
        </div>

        <div id="fvariable"></div>
        <!-- <div class="row mb-3">
          <div class="col-sm-4">
            <label for="var1">Variable 1</label>
            <input type="text" class="form-control" id="var1" maxlength="30" />
          </div>
        </div>
        <div class="row mb-3">
          <div class="col-sm-4">
            <label for="var2">Variable 2</label>
            <input type="text" class="form-control" id="var2" maxlength="10" />
          </div>
        </div> -->
        <div class="row mb-3">
          <div class="col-sm-6">
            <input type="file" id="smsfile" />
          </div>
        </div>
        <div class="row mb-3">
          <div class="col-sm-6">
            <button class="btn btn-primary" onclick="uploadSMSFile()">
              Upload
            </button>
          </div>
          <div class="row mt-3">
            <p>Note:</p>
            <span style="color: red">
              Each variable should not exceed more than 30 characters</span
            >
          </div>
        </div>
      </div>
      <div
        class="tab-pane fade"
        id="nav-profile"
        role="tabpanel"
        aria-labelledby="nav-profile-tab"
      >
        <div class="card-body">
          <div id="smstable" style="overflow-y: auto"></div>
        </div>
      </div>
      <!-- <div
        class="tab-pane fade"
        id="nav-contact"
        role="tabpanel"
        aria-labelledby="nav-contact-tab"
      >
        ...
      </div> -->
    </div>
  </div>
</div>