function expandSvg($template, $messages) { $dir = $messages->expand('dir'); $encNumber = $messages->expand('number'); // '15,203'; $encYou = $messages->expand('you'); return flipSvg($dir, strtr($template, array('{{{dir}}}' => $dir, '{{{count}}}' => $messages->expand('count', "<tspan class='number'>{$encNumber}</tspan>"), '{{{headline}}}' => $messages->expand('headline', "<tspan class='you'>{$encYou}</tspan>"), '{{{button}}}' => $messages->expand('button'), '{{{progress}}}' => progressBar(10549, 100000)))); }
function transcodeWithFfmpeg($cmd) { global $config; echo "<p>Encoding Video file...<br />\n"; flush(); progressBar($cmd, $config['ffmpegRegexp']); echo "</p>\n"; flush(); }
function encodeWithOgg($cmd) { global $config; echo "<p>Encoding OGG file...<br />\n"; flush(); progressBar($cmd, $config['oggencRegexp']); echo "</p>\n"; flush(); }
$submodel->setAxePeda($ue['axePeda']); $submodel->setEcts(intval($ue['ects'])); $submodel->setProduct($model); $em->persist($submodel); $em->flush(); /*$m = 0; foreach ($ue->module as $module) { $nmodel = new \Models\Module(); $nmodel->setName($module['name']); $nmodel->setUE($submodel); $em->persist($nmodel); // Limit if ($test_limit_data && $m++ > 4) break; } $em->flush();*/ progressBar($i++, $total); if ($test_limit_data && $u++ > 4) { break; } } $em->flush(); progressBar($i++, $total); } progressBar($i, $total); echo " OK!\n";
<li> <h4>The Help</h4> <?php echo progressBar('theHelp')->render(); ?> </li> <li> <h4>The Internship</h4> <?php echo progressBar('theInternship')->render(); ?> </li> <li> <h4>The Perks of Being a Wallflower</h4> <?php echo progressBar('thePerks')->render(); ?> </li> </ul> </div> <?php require_once '../include/footer.php'; ?> <script> $(document).ready(function () { var progressbars = []; $(".poll-results div").each(function () { progressbars.push($(this).data("kendoProgressBar")); });
function encodeWithOgg($cmd) { global $progressBarLength; global $progressBarChar; global $oggencRegexp; echo "<p>Encoding OGG file...<br />\n"; flush(); progressBar($cmd, $oggencRegexp); echo "</p>\n"; flush(); }
if ($repoStudent->findOneBy(array('emailViacesi' => $contacts['viacesiMail']))) { // Doublon progressBar($c++, $total); continue; } $model = new \Models\Etudiant(); $model->setId($student['id']); $model->setCivilite($etatCivil['civilite']); $model->setFirstName($etatCivil['firstName']); $model->setLastName($etatCivil['lastName']); $date = DateTime::createFromFormat($format, $etatCivil['birthday']); $model->setBirthDay($date ? $date : null); $model->setBirthPlace($etatCivil['birthplace']); $model->setNationality($etatCivil['nationality']); $model->setEmail($contacts['email']); $model->setEmailViacesi($contacts['viacesiMail']); $model->setPhoneNumber($contacts['phone']); $model->setCellNumber($contacts['cell']); $model->setAddressCity($contacts['city']); $model->setAddressPostalCode($contacts['postalCode']); $em->persist($model); //if ($s % 50 === 0) $em->flush(); if ($s++ > 99 && $test_limit_data) { break; } progressBar($c++, $total); } $em->flush(); progressBar($c, $total); echo " OK!\n";