本文整理汇总了PHP中progress_bar::hide方法的典型用法代码示例。如果您正苦于以下问题:PHP progress_bar::hide方法的具体用法?PHP progress_bar::hide怎么用?PHP progress_bar::hide使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类progress_bar
的用法示例。
在下文中一共展示了progress_bar::hide方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: addslashes
}
if ($niveau_min) {
print "<input type='button' class='bouton_small' value='" . $msg["relance_row_print"] . "' onClick=\"openPopUp('pdf.php?pdfdoc=lettre_retard&id_empr=" . $r["id_empr"] . "&niveau=" . $niveau_min . "','lettre', 600, 500, -2, -2, 'toolbar=no, dependent=yes, resizable=yes'); this.form.act.value='solo_print'; this.form.relance_solo.value='" . $r["id_empr"] . "'; {$script}\"/>";
if (($mailretard_priorite_email == 1 || $mailretard_priorite_email == 2) && $has_mail && ($niveau_min < 3 || $mailretard_priorite_email_3 == 1 && $niveau_min >= 3)) {
print "<input type='button' class='bouton_small' value='" . $msg["relance_row_mail"] . "' onClick=\"this.form.act.value='solo_mail'; this.form.relance_solo.value='" . $r["id_empr"] . "'; {$script}\"/>";
}
}
print "</td>";
print "</tr>\n";
$nb_relances++;
}
}
echo "</table>";
print "<div class='right'>";
print "<input type='button' class='bouton' value='" . $msg["relance_valid_all"] . "' onClick=\"this.form.act.value='valid'; this.form.relance_solo.value=''; {$script}\"/> ";
print "<input type='button' class='bouton' value='" . $msg["relance_print_nonprinted"] . "' onClick=\"this.form.act.value='print'; this.form.relance_solo.value=''; {$script}\"/> ";
print "<input type='button' class='bouton' value='" . $msg["relance_export"] . "' onClick=\"this.form.act.value='export'; this.form.relance_solo.value=''; {$script}\"/> ";
if (count($list_dates_relance)) {
print "<input type='button' value='" . addslashes($msg["print_relance_clear"]) . "' onClick=\"if (confirm('" . sprintf(addslashes($msg["confirm_print_relance_clear"]), "'+this.form.clear_date.options[this.form.clear_date.selectedIndex].text+' ?'") . ")) { this.form.act.value='raz_printed'; this.form.printed_cd.value=this.form.clear_date.options[this.form.clear_date.selectedIndex].value; {$script} }\" class='bouton'/> <select name='clear_date'>";
print "<option value=''>" . $msg["print_relance_clear_all"] . "</option>\n";
foreach ($list_dates_sort as $val => $stamp) {
$lib = $list_dates_relance[$val];
print "<option value='{$val}'>" . $lib . "</option>\n";
}
print "</select>";
}
print "</div></form>";
print "<script type='text/javascript'>document.getElementById('nb_relance_to_do').innerHTML='(" . $nb_relances . ")';</script>";
if ($progress_bar) {
$progress_bar->hide();
}
示例2: addslashes
} else {
$requete = "SELECT bulletin_titre, num_notice FROM bulletins WHERE bulletin_id='" . $row->expl_bulletin . "'";
$res2 = mysql_query($requete);
if (mysql_num_rows($res2)) {
$element = mysql_fetch_object($res2);
if (trim($element->bulletin_titre)) {
$requete = "UPDATE bulletins SET index_titre=' " . addslashes(strip_empty_words($element->bulletin_titre)) . " ' WHERE bulletin_id='" . $row->expl_bulletin . "'";
mysql_query($requete);
}
if ($element->num_notice) {
notice::majNoticesTotal($element->num_notice);
}
}
}
}
$pb->progress();
}
}
$pb->hide();
}
print "<br /><h3>{$msg['caddie_situation_reindex']}</h3>";
print sprintf($msg["caddie_action_flag_processed"], $nb_elements_flag) . "<br />";
print sprintf($msg["caddie_action_no_flag_processed"], $nb_elements_no_flag) . "<br />";
print "<b>" . sprintf($msg["caddie_action_total_processed"], $nb_elements_total) . "</b><br /><br />";
print aff_cart_nb_items($myCart);
default:
break;
}
} else {
aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=action&quelle=reindex", "choix_quoi", $msg["caddie_action_reindex"], "", 0, 0, 0);
}
示例3: diarize
/**
* Segmente le document numérique et stocke le résultat en base de données
*/
public function diarize()
{
// On commence par supprimer
$query = "delete from explnum_segments where explnum_segment_explnum_num = " . $this->explnum->explnum_id;
mysql_query($query);
$query = "delete from explnum_speakers where explnum_speaker_explnum_num = " . $this->explnum->explnum_id;
mysql_query($query);
// Gestion de la progress_bar
$progress_bar = new progress_bar("upload to server");
$progress_bar->set_percent(0);
$this->speechFile = $this->diarization->sendFile($this->getFile());
// $this->speechFile = $this->diarization->getFile(67);
$status = $this->speechFile->getStatus();
while ($status != "diarization_phase7") {
if ($status == "uploaded") {
$progress_bar->set_percent(round(1 / 8 * 100));
} else {
$nb = str_replace("diarization_phase", "", $status);
$progress_bar->set_percent(round(($nb + 1) / 8 * 100));
}
$progress_bar->set_text($status);
$status = $this->speechFile->getStatus();
sleep(0.5);
}
sleep(10);
$progress_bar->hide();
$speakers = $this->speechFile->getSpeakers();
$speakers_ids = array();
// Tableau associant l'identifiant du speaker avec son identifiant dans la table
foreach ($speakers as $speaker) {
$query = "insert into explnum_speakers (explnum_speaker_explnum_num, explnum_speaker_speaker_num, explnum_speaker_gender) values (" . $this->explnum->explnum_id . ", '" . $speaker->getID() . "', '" . $speaker->getGender() . "')";
mysql_query($query);
$speakers_ids[$speaker->getID()] = mysql_insert_id();
}
$segments = $this->speechFile->getSegments();
foreach ($segments as $segment) {
$query = "insert into explnum_segments (explnum_segment_explnum_num, explnum_segment_speaker_num, explnum_segment_start, explnum_segment_duration, explnum_segment_end) values (" . $this->explnum->explnum_id . ", '" . $speakers_ids[$segment->getSpeaker()->getID()] . "', " . $segment->getStart() . ", " . $segment->getDuration() . ", " . $segment->getEnd() . ")";
mysql_query($query);
}
}