Cómo perfilar la barra de estado en php (al igual que la barra de estado de Linkedin) [cerrado]
Frecuentes
Visto 3,887 veces
1 Respuestas
7
For a progress bar to work you have to specify some criteria.
For example, on SO, if you go to Carreras you will have on you profile a completeness report
.
Cada parte del completeness report
has certain points or a certain percentage of total amount of points you can earn.
Basado en tu User Profile
criteria you can make that progress bar.
Por ejemplo:
$hasCompletedSkill = 10;
$hasCompletedBooks = 15;
$maximumPoints = 100;
$percentage = ($hasCompletedSkill+$hasCompletedBooks)*$maximumPoints/100;
echo "
<div style='width:100px; background-color:white; height:30px; border:1px solid #000;'>
<div style='width:".$percentage."px; background-color:red; height:30px;'></div>
</div>";
Saldrá:
Respondido 27 ago 12, 14:08
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas javascript php jquery css or haz tu propia pregunta.
is this a question or a show me how? Have you Googled it? do you have a Start on it? - Malachi
Seems to me that it's a pretty simple calculation to figure out the percent completed, then generating an image to reflect that. Which of these steps do you need help with? - Matt
show me. Yes I searched in google but not got proper function. - Rishabh
@Rishabh please tell us su thoughts on how this should work. - Matt
@Malione maybe not how, but at least the basics. There are people that need the ideea. - Mihai Iorga