Another switch button made entirely with CSS. Works better with Google Chrome. Inspired by http://dribbble.com/shots/343597-Switch-button
A Pen by Cainã Maturo on CodePen.
<?php if ((ceil($usersTotal / $perPage)) >= 2) { ?> | |
<ul class="pagination pagination-sm no-margin pull-right"> | |
<?php if ($currentPage != 1): ?> | |
<li> | |
<a href="<?php echo base_url() ?>super/users_list">«</a> | |
</li> | |
<?php endif; ?> |
<?PHP | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* @name Spintax | |
* @author Jason Davis - https://www.codedevelopr.com/ | |
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
*/ | |
class Spintax | |
{ | |
public function process($text) |
This gist assumes:
//if expected template available in string formate | |
if($string1) | |
{ | |
//write the expected template in a unique html file | |
write_file("uploads/$classId/Result-$classId-part$number.html", $string1); | |
//make the unique url for the html | |
$fileUrl = base_url()."uploads/$classId/Result-$classId-part$number.html"; | |
//run exec funtion and fee the html link to wkhtml function with requed pdf link(unique) | |
exec('"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" '.$fileUrl. ' uploads/'.$classId.'/'.$number.".pdf"); | |
//after execution remove the html file |
<style> | |
body { | |
} | |
table | |
{ | |
width: 100%; | |
} | |
table,th,td |
<?php | |
function toBangla ($str) | |
{ | |
$convert = array ( | |
'0' => '০', | |
'1' => '১', | |
'2' => '২', | |
'3' => '৩', | |
'4' => '৪', | |
'5' => '৫', |
function toBangla (str) | |
{ | |
//check if the `str` is not string | |
if(!isNaN(str)){ | |
//if not string make it string forcefully | |
str = String(str); | |
} | |
//start try catch block | |
try { |
<?php | |
// this is the file structure of the command file. | |
// src/SmsBundle/Command/SendSmsCommand.php | |
namespace SmsBundle\Command; | |
use Symfony\Component\Console\Command\Command; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
//we need this to take inputs from the console. | |
use Symfony\Component\Console\Input\InputArgument; |
Options +FollowSymLinks | |
RewriteEngine on | |
#here http://www.ainixon.me/rss/ is the new domain link where we want to redirect all our traffic. | |
RewriteRule (.*) http://www.ainixon.me/rss/ [R=301,L] |