Example #1
0
 public function updateNewTooltip($id)
 {
     $model = new Tooltip();
     $data = $model->findOne($id);
     $values['id_tooltip'] = $id;
     $data->setFromArray($values);
     return $data->save();
 }
Example #2
0
            </strong>
          </div>
          <div class="col-sm-10">
            <input type="date" class="form-control" name="d_from" id="d_from" placeholder="Display From" value="<?php 
print date("Y-m-d");
?>
"/>
          </div>
        </span>
      </div>
      <div class="form-group">
        <span id="s_d_until">
          <div class="col-sm-2">
            <label for="d_until">Display Until *
              <?php 
Tooltip::helpTooltip('The date the meet is displayed until. (23:59:59 on that day) (Must be enabled) (Required)');
?>
            </label>
            <strong> <span class="textfieldRequiredMsg  text-danger"><br />
            Required</span> </strong> </div>
          <div class="col-sm-10">
            <input type="date" class="form-control" name="d_until" id="d_until" value="<?php 
print date("Y-m-d", strtotime('1 month'));
?>
" placeholder="Display Until"/>
          </div>
        </span>
      </div>
      <div class="form-group">
        <div class="col-sm-6">
          <a tabindex="<?php 
Example #3
0
?>
"/> Disabled <span class="<?php 
print B_ICON . ' ' . B_ICON;
?>
-remove-sign"></span>
            </label>
          </div>
        </div>
      </div>
<?php 
foreach ($meet->options['res-services'] as $v => $service) {
    $tabindex++;
    print '      <div class="form-group">' . PHP_EOL;
    print '        <div class="col-sm-2">' . PHP_EOL;
    print '          <label>' . $service['title'] . PHP_EOL;
    Tooltip::helpTooltip($service['help']);
    print '          </label>' . PHP_EOL;
    print '        </div>' . PHP_EOL;
    print '        <div class="col-sm-10">' . PHP_EOL;
    print '          <div class="btn-group" data-toggle="buttons">' . PHP_EOL;
    print '            <label class="btn btn-success disabled active" id="e_r_s_' . $v . '-Y" disabled>' . PHP_EOL;
    print '              <input type="radio" name="e_r_s[' . $v . ']" value="1" checked tabindex="' . $tabindex . '"/>  Enabled <span class="' . B_ICON . ' ' . B_ICON . '-ok-sign"></span>' . PHP_EOL;
    print '            </label>' . PHP_EOL;
    print '            <label class="btn btn-default disabled" id="e_r_s_' . $v . '-N" disabled>' . PHP_EOL;
    $tabindex++;
    print '              <input type="radio" name="e_r_s[' . $v . ']" value="0" tabindex="' . $tabindex . '"/> Disabled <span class="' . B_ICON . ' ' . B_ICON . '-remove-sign"></span>' . PHP_EOL;
    print '            </label>' . PHP_EOL;
    print '          </div>' . PHP_EOL;
    print '        </div>' . PHP_EOL;
    print '      </div>' . PHP_EOL;
}
Example #4
0
            <input type="text" class="form-control hidden" name="location" id="location" placeholder="Custom Location" value="<?php 
print $location;
?>
" tabindex="<?php 
$tabindex++;
print $tabindex;
?>
"/>
          </div>
        </span>
      </div>
      <div class="form-group">
        <span id="s_notes">
          <div class="col-sm-2">
            <label for="notes">Details <?php 
Tooltip::helpTooltip('Enter the details for this event in the box to the right. (Recommended) (Max Chars 500)');
?>
</label><br />
            <strong>
              <span class="text-info">Number Chars: <span id="counts_notes">&nbsp;</span></span>
              <span class="textareaMaxCharsMsg text-danger"><br />Exceeded maximum number of characters.</span>
            </strong>
          </div>
          <div class="col-sm-10">
            <textarea class="form-control" name="notes" placeholder="Details" rows="4" tabindex="<?php 
$tabindex++;
print $tabindex;
?>
"><?php 
print $notes;
?>
Example #5
0
 /**
  * Add tooltip to code
  * @param string $code
  */
 protected function addTooltipToCode(&$code)
 {
     if (!empty($this->Tooltip)) {
         $Tooltip = new Tooltip($this->Tooltip);
         $Tooltip->wrapAround($code);
     }
 }
print '</b></p>' . PHP_EOL;
print '            </div>' . PHP_EOL;
print '            <div class="col-xs-2"><p><b>Stroke ';
Tooltip::helpTooltip('Event Stroke (Required)');
print '</b></p>' . PHP_EOL;
print '            </div>' . PHP_EOL;
print '            <div class="col-xs-2"><p><b>Round ';
Tooltip::helpTooltip('Round of Event (Required)');
print '</b></p>' . PHP_EOL;
print '            </div>' . PHP_EOL;
print '            <div class="col-xs-1"><p><b><abbr title="Lower Age">L Age</abbr> ';
Tooltip::helpTooltip('Lower Age Limit (0 = Unlimited) (Required)');
print '</b></p>' . PHP_EOL;
print '            </div>' . PHP_EOL;
print '            <div class="col-xs-1"><p><b><abbr title="Upper Age">U Age</abbr> ';
Tooltip::helpTooltip('Upper Age Limit (0 = Unlimited) (Required)');
print '</b></p>' . PHP_EOL;
print '            </div>' . PHP_EOL;
print '          </div>' . PHP_EOL;
$ses_query = $mySQL['r']->prepare("SELECT `SID`,`number` FROM `comp_session` WHERE `MID`=? ORDER BY `number` ASC");
$ses_query->bind_param('s', $_GET['m']);
$ses_query->execute();
$ses_query->store_result();
$sessions = array();
if ($ses_query->num_rows != 0) {
    $ses_query->bind_result($SID, $number);
    while ($ses_query->fetch()) {
        $sessions[$SID] = $number;
    }
}
for ($num = 1; $num <= $_GET['e']; $num++) {
    print '    <div class="col-xs-12">' . PHP_EOL;
    print '      <h2>No event selected to preview!</h2>' . PHP_EOL;
    print '  </div>' . PHP_EOL;
    print '</div>' . PHP_EOL;
}
?>
<div class="row pane">
  <div class="col-xs-12">
    <form class="form-horizontal" action="<?php 
print $_SERVER['REQUEST_URI'];
?>
" method="get">
      <div class="form-group">
        <div class="col-xs-4 text-right">
          <p><label for="e">Event to Preview <?php 
Tooltip::helpTooltip('Select the event you wish to preview and then click \'View\'. A <> after the event ID indicates the event is not displaying on the website.');
?>
</label></p>
        </div>
        <div class="col-xs-8">
          <select name="e" class="form-control">
            <option disabled="disabled" <?php 
if (!isset($_GET['e'])) {
    print ' selected';
}
?>
>Select an Event</option>
          <?php 
$event_query = $mySQL['r']->prepare("SELECT `title`,`ID`,`enable` FROM `news_events` WHERE `link`='' ORDER BY `ID`");
$event_query->execute();
$event_query->store_result();
Example #8
0
print $page->getHeader();
if (isset($_GET['msg'])) {
    $alert = new Alert();
    $alert->printAlerts();
}
$tabindex = 1;
?>

<div class="row pane">
  <div class="col-sm-12 col-md-11 col-lg-11 col-lg-offset-1 col-md-offset-1">
    <form class="remove form-horizontal" id="remove" action="/act/comp_del" method="post">
      <div class="form-group">
        <span id="s_comp">
          <div class="col-sm-2">
            <label for="article">Competition * <?php 
Tooltip::helpTooltip('Competition to delete. (Required)');
?>
</label>
          </div>
          <div class="col-sm-6">
            <select class="form-control" name="comp" tabindex="<?php 
$tabindex++;
print $tabindex;
?>
">
              <option disabled="disabled">Select a Competition</option>
<?php 
$article_query = $mySQL['r']->prepare("SELECT `title`,`ID`,`enable` FROM `comp_meet` ORDER BY `date_c` ASC");
$article_query->execute();
$article_query->store_result();
$article_query->bind_result($title, $ID, $preview);
          <label for="n_s">Swimmers' Notes
            <?php 
Tooltip::helpTooltip('Additional information regarding swimmers. (Recommended)');
?>
          </label>
        </div>
        <div class="col-sm-10">
          <textarea class="form-control" name="n_s" id="n_s" rows="3"></textarea>
          <br />
        </div>
        </span> </div>
      <div class="form-group"> <span id="s_n_p">
        <div class="col-sm-2">
          <label for="n_p">Parents' Notes
            <?php 
Tooltip::helpTooltip('Additional information regarding parents. (Recommended)');
?>
          </label>
        </div>
        <div class="col-sm-10">
          <textarea class="form-control" name="n_p" id="n_p" rows="3"></textarea>
          <br />
        </div>
        </span> </div>
      <div class="form-group">
        <div class="col-sm-6">
          <a tabindex="<?php 
$tabindex++;
print $tabindex;
?>
" class="btn btn-large btn-default btn-block" href="/admin/competitions/comp_view">Close&nbsp;&nbsp;&nbsp;<span class="<?php 
Example #10
0
 /**
  * Wyświetlanie tooltipa po najechaniu na ikonkę
  * @param String LabelTootipa
  * @return String OpisTooltipa
  */
 public function showtooltipAction()
 {
     $label = $this->getRequest()->getParam("param");
     sleep(1);
     $tooltipModel = new Tooltip();
     $tooltip = $tooltipModel->getByLabel($label);
     echo $tooltip['description'];
     die;
 }
Example #11
0
    $_GET['e'] = 1;
} elseif ($_GET['e'] < 1) {
    $_GET['e'] = 1;
}
?>

<div class="row pane">
  <div class="col-xs-12">
    <form class="form-horizontal" id="comp_add" method="post" action="/act/comp_add-docs">
      <div class="row">
        <div class="col-sm-12 col-md-11 col-lg-11 col-lg-offset-1 col-md-offset-1">
          <div class="form-group">
            <div class="col-sm-2">
              <label>Progress
                <?php 
Tooltip::helpTooltip('Your progress through the meet wizard.');
?>
              </label>
            </div>
            <div class="col-sm-10">
              <div class="row">
                <div class="col-xs-12">
                  <div class="progress progress-striped active">
                    <div id="progress-bar" class="progress-bar" role="progressbar" aria-valuenow="28" aria-valuemin="0" aria-valuemax="100" style="width: 41%"> <span id="progress-bar-sr" class="sr-only">28% Complete</span> </div>
                  </div>
                </div>
              </div>
              <div class="row text-center">
                <div class="col-xs-2"> <span class="text-<?php 
print B_T_MUTED;
?>
    print '              <span id="s_s' . $num . '_t_i">' . PHP_EOL;
    print '                 <div class="col-sm-6">' . PHP_EOL;
    print '                  <label for="s[' . $num . '][t][i]">Sign In By' . PHP_EOL;
    Tooltip::helpTooltip('Time swimmers must be signed in by. (Required)');
    print '                  </label>' . PHP_EOL;
    print '                </div>' . PHP_EOL;
    print '                <div class="col-sm-6">' . PHP_EOL;
    print '                  <input type="time" class="form-control" name="s[' . $num . '][t][i]"  value="18:15" />' . PHP_EOL;
    print '                </div>' . PHP_EOL;
    print '              </span>' . PHP_EOL;
    print '            </div>' . PHP_EOL;
    print '            <div class="form-group">' . PHP_EOL;
    print '              <span id="s_s' . $num . '_t_s">' . PHP_EOL;
    print '                <div class="col-sm-6">' . PHP_EOL;
    print '                  <label for="s[' . $num . '][t][s]">Start Time' . PHP_EOL;
    Tooltip::helpTooltip('Time session starts. (Required)');
    print '                  </label>' . PHP_EOL;
    print '                </div>' . PHP_EOL;
    print '                <div class="col-sm-6">' . PHP_EOL;
    print '                  <input type="time" class="form-control" name="s[' . $num . '][t][s]"  value="19:00" />' . PHP_EOL;
    print '                </div>' . PHP_EOL;
    print '              </span>' . PHP_EOL;
    print '            </div>' . PHP_EOL;
    print '          </fieldset>' . PHP_EOL;
    print '        </div>' . PHP_EOL;
}
?>
      </div>
      <?php 
$deleteConf = new Modal();
$deleteConf->setID('saveCont');