Thread: donation
View Single Post
  #1  
Old 26-08-12, 20:17
lafouine022's Avatar
lafouine022 lafouine022 is offline
Support FR
 
Join Date: Feb 2010
P2P
Posts: 119
Default donation
http://www.packupload.com/9FA1GMRA2KR

Upload in root web

run sql

PHP Code:
CREATE TABLE IF NOT EXISTS `{PREFIX}donation` (
  `
donation_actuint(11NOT NULL default '0',
  `
donation_maxint(11NOT NULL default '0',
  `
donation_emailtext
ENGINE=MyISAM DEFAULT CHARSET=latin1
remplace in template/(template use)/template.php

PHP Code:
<div id="header"
by

PHP Code:
<div id="header">
    <div class="progress-bar orange shine">
    <?php
        $db 
= new DB("donation");
        
$db->setColPrefix("donation_");
        
$db->select();
        
$db->nextRecord();
        
$donation $db->actu*100/$db->max
        
    ?>
    
            <span style="width: <?php echo $donation ?>%"><center><?php echo $donation ?>%</center></span>
            <p><a href="<?php echo page("donation"?>"><center>Fair un Don</center></a></p>
        </div>
add this lines in template/(template use)/css/style.css

PHP Code:
div#header .progress-bar {
    
background-color#204066;
    
height15px;
    
text-alignleft;
    
color#ffffff;
    
padding3px;
    
width130px;
    
margin0px 780px;            
    -
moz-border-radius5px;
    -
webkit-border-radius5px;
    
border-radius5px;
    -
moz-box-shadow0 1px 5px #000 inset, 0 1px 0 #444;
    
-webkit-box-shadow0 1px 5px #000 inset, 0 1px 0 #444;
    
box-shadow0 1px 5px #000 inset, 0 1px 0 #444;              
}

div#header .progress-bar a{
    
color#ffffff;
}
div#header .progress-bar span {
    
displayinline-block;
    
height100%;    
    -
moz-border-radius3px;
    -
webkit-border-radius3px;
    
border-radius3px;
    -
moz-box-shadow0 1px 0 rgba(255255255.5inset;
    -
webkit-box-shadow0 1px 0 rgba(255255255.5inset;
    
box-shadow0 1px 0 rgba(255255255.5inset;
        -
webkit-transitionwidth .4s ease-in-out;
        -
moz-transitionwidth .4s ease-in-out;
        -
ms-transitionwidth .4s ease-in-out;
        -
o-transitionwidth .4s ease-in-out;
        
transitionwidth .4s ease-in-out;    
}


.
orange span {
      
background-color#fecf23;
      
background-image: -webkit-gradient(linearleft topleft bottomfrom(#fecf23), to(#fd9215));
      
background-image: -webkit-linear-gradient(top#fecf23, #fd9215);
      
background-image: -moz-linear-gradient(top#fecf23, #fd9215);
      
background-image: -ms-linear-gradient(top#fecf23, #fd9215);
      
background-image: -o-linear-gradient(top#fecf23, #fd9215);
      
background-imagelinear-gradient(top#fecf23, #fd9215);  
}    




.
shine span {
    
positionrelative;
}

.
shine span::after {
    
content'';
    
opacity0;
    
positionabsolute;
    
top0;
    
right0;
    
bottom0;
    
left0;
    
background#fff;
    
-moz-border-radius3px;
    -
webkit-border-radius3px;
    
border-radius3px;            
    
    -
webkit-animationanimate-shine 2s ease-out infinite;
    -
moz-animationanimate-shine 2s ease-out infinite;             
}

@-
webkit-keyframes animate-shine 
    
0% {opacity0width0;}
    
50% {opacity.5;}
    
100% {opacity0width95%;}
}


@-
moz-keyframes animate-shine {
    
0% {opacity0width0;}
    
50% {opacity.5;}
    
100% {opacity0width95%;}


ok go in siteadmin/template/toolbar.php and remplace

PHP Code:
 <li>
                        <a href="<?php echo page("admin""widgets"); ?>">
                            <i class="icon"><img src="images/admin/widgets.png" width="16px"></i>&nbsp;Widgets
                        </a>
                    </li>
                    <li>
by

PHP Code:
<li>
                        <a href="<?php echo page("admin""widgets"); ?>">
                            <i class="icon"><img src="images/admin/widgets.png" width="16px"></i>&nbsp;Widgets
                        </a>
                    </li>
                    <li>
                        <a href="<?php echo page("admin""donation"); ?>">
                            <i class="icon"><img src="images/admin/donation.png" width="16px"></i>&nbsp;Donation
                        </a>
                    </li>
go in your panel admin donnation and add more information


enjoy...
Reply With Quote