echo Text::get('project-view-metter-investors'); ?> </span></dt> <dd class="supporters"><strong><?php echo number_format($supporters); ?> </strong></dd> </dl> <?php if ($activable) { ?> <div class="obtained"> <strong><?php echo \amount_format($reached); ?> <span class="euro">€</span></strong> <span class="percent"><?php echo number_format($minimum_done_per); ?> %</span> </div> <?php } ?> <?php /* // si en estado 3 ha alcanzado el optimo o segunda ronda, "aun puedes seguir aportando" junto al quedan tantos días if ($project->status == 3 && ($project->round == 2 || $project->amount >= $project->maxcost || ($project->round == 1 && $project->amount >= $project->mincost) )) : ?>
</tr> <tr> <th><?php echo Text::_("Correcto"); ?> </th> <td style="text-align:right;"><?php echo \amount_format($Data['cash']['first']['amount']); ?> </td> <td style="text-align:right;"><?php echo \amount_format($Data['cash']['second']['amount']); ?> </td> <td style="text-align:right;"><?php echo \amount_format($Data['cash']['total']['amount']); ?> </td> <td><?php echo Text::_("Aportes de cash anteriores a la campaña"); ?> </td> </tr> </table> <?php } ?> <?php if (!empty($Data['note'])) { ?>
?> > <ul> <?php foreach ($project->individual_rewards as $individual) { ?> <li class="<?php echo $individual->icon; ?> "> <div class="amount"><?php echo Text::get('regular-investing'); ?> <span class="euro"><?php echo \amount_format($individual->amount); ?> </span></div> <h<?php echo $level + 2; ?> class="name"><?php echo htmlspecialchars($individual->icon_name) . ': ' . htmlspecialchars($individual->reward); ?> </h<?php echo $level + 2; ?> <p><?php echo htmlspecialchars($individual->description); ?> </p>
* GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Goteo. If not, see <http://www.gnu.org/licenses/agpl.txt>. * */ use Goteo\Core\View, Goteo\Library\Text, Goteo\Library\Worth; $project = $this['project']; $level = (int) $this['level'] ?: 3; $reached = \amount_format($project->invested); $supporters = count($project->investors); $worthcracy = Worth::getAll(); $investors = array(); foreach ($project->investors as $user=>$investor) { $investors[] = $investor; } // en la p�gina de cofinanciadores, paginaci�n de 20 en 20 require_once 'library/pagination/pagination.php'; $pagedResults = new \Paginated($investors, 20, isset($_GET['page']) ? $_GET['page'] : 1);
echo $mreach; ?> </li> <li class="reached"><?php echo \amount_format($banner->project->amount); ?> <img src="<?php echo SRC_URL; ?> /view/css/euro/blue/s.png" alt="€" /></li> <li><?php echo $mof; ?> </li> <li class="optimun"><?php echo $banner->project->amount >= $banner->project->mincost ? \amount_format($banner->project->maxcost) : \amount_format($banner->project->mincost); ?> <img src="<?php echo SRC_URL; ?> /view/css/euro/violet/s.png" alt="€" /></li> <?php if ($banner->project->days > 0) { ?> <li><?php echo $mrest; ?> </li> <li class="days"><?php echo $banner->project->days; ?>
/** * Muestra un div con las imagenes en pantalla. * @param type int $width * @param type int $height * */ public function html($width = 608, $extern = false) { $URL = NODE_ID != GOTEO_NODE ? NODE_URL : SITE_URL; // si es externo, abrimos en una ventana nueva $target = $extern ? ' target="_blank"' : ''; //cal que siguin multiples del tamany $wsize = $this->w_size + $this->w_padding * 2; $hsize = $this->h_size + $this->h_padding * 2; //num icones per fila $num_icons = floor($width / $wsize); //tamany minim if ($num_icons < 15) { $num_icons = 14; } //amplada efectiva $width = $wsize * $num_icons; // estilos estaticos $style = '<link rel="stylesheet" type="text/css" href="/view/css/wof.css" />'; // estilos dinamicos $style .= '<style type="text/css">'; $style .= "div.wof>div.ct>a>img {border:0;width:{$this->w_size}px;height:{$this->h_size}px;display:inline-block;padding:{$this->h_padding}px {$this->w_padding}px {$this->h_padding}px {$this->w_padding}px}"; $style .= "div.wof>div.ct>div.a {display:inline-block;width:" . $wsize * 5 . "px;height:" . $hsize . "px}"; $style .= "div.wof>div.ct>div.b {display:inline-block;width:" . $wsize * 8 . "px;height:" . $hsize . "px}"; $style .= "div.wof>div.ct>div.c {display:inline-block;width:" . $wsize * 14 . "px;height:" . $hsize . "px}"; $style .= "div.wof>div.ct>div.d {display:inline-block;width:" . $wsize * 14 . "px;height:" . $hsize . "px}"; $style .= "div.wof>div.ct>div.e {display:inline-block;width:" . $wsize * 4 . "px;height:" . $hsize . "px}"; $style .= "div.wof>div.ct>div.i {overflow:hidden;padding:0;margin:0;position:absolute;height:" . $hsize * 3 . "px;background:#fff;left:" . ($num_icons < 15 ? "0" : $wsize) . "px;top:" . $hsize * 5 . "px}"; $style .= "div.wof>div.ct>div.b.i {left:" . $wsize * ($num_icons < 15 ? 6 : 7) . "px;top:" . $hsize * 5 . "px}"; $style .= "div.wof>div.ct>div.c.i {left:" . ($num_icons < 15 ? "0" : $wsize) . "px;top:" . $hsize . "px}"; $style .= "div.wof>div.ct>div.d.i {left:" . ($num_icons < 15 ? "0" : $wsize) . "px;top:" . $hsize * 9 . "px;height:" . $hsize * 2 . "px;background:url(" . $URL . "/view/css/project/widget/wof_sup_bck.png) no-repeat}"; $content = $this->html_content($num_icons); $cols = floor((count($content) + 3 * 13 + 3 * 11 + 2 * 13 + 2 * 3) / $num_icons); $logotop = $hsize * ($cols - 2); if ($logotop < 385) { $logotop = 385; } $style .= "div.wof>div.ct>div.e.i {left:" . ($num_icons - 5) * $wsize . "px;top:" . $logotop . "px;height:" . $hsize * 2 . "px;background:#fff url(" . $URL . "/view/css/project/widget/wof_logo.png) center no-repeat}"; $style .= "div.wof>div.ct>div.c>div.c1 {float:left;height:" . $wsize * 3 . "px;width:" . $wsize * 3 . "px}"; $style .= "div.wof>div.ct>div.c>div.c2 {float:right;height:" . $wsize * 3 . "px;width:" . $wsize * 11 . "px}"; $style .= "</style>"; $title = '<h2><a href="' . $URL . '/project/' . $this->project->id . '"' . $target . '>' . Text::get('wof-title') . '</a><a href="' . $URL . '" class="right"' . $target . '>goteo.org</a></h2>'; $info = ''; if ($this->project->status == 3) { $info .= '<a class="expand" href="' . $URL . '/project/' . $this->project->id . '/invest" title="' . Text::get('wof-here') . '"' . $target . '></a>'; } //num finançadors $info .= '<div class="a i"><h3><a href="' . $URL . '/project/' . $this->project->id . '/supporters"' . $target . '>' . $this->project->num_investors . '</a></h3><p><a href="' . $URL . '/project/' . $this->project->id . '/supporters"' . $target . '>' . Text::get('project-view-metter-investors') . '</a></p></div>'; //financiacio, data $info .= '<div class="b i"><h3><a href="' . $URL . '/project/' . $this->project->id . '/needs"' . $target . '>' . \amount_format($this->project->invested, 0, '', ',') . '<img src="' . $URL . '/view/css/euro/violet/yl.png" alt="€"></a></h3>'; $info .= '<p><a href="' . $URL . '/project/' . $this->project->id . '/needs">' . Text::get('project-view-metter-days') . " {$this->project->days} " . Text::get('regular-days') . '</a></p></div>'; //impulsores, nom, desc $info .= '<div class="c i">'; $info .= '<div class="c1"><p><a href="' . $URL . '/user/' . $this->project->owner . '"' . $target . '><img src="' . $URL . '/image/' . $this->project->user->avatar->id . '/56/56/1" alt="' . $this->project->user->name . '" title="' . $this->project->user->name . '"><br />' . Text::get('regular-by') . ' ' . $this->project->user->name . '</a></p></div>'; $info .= '<div class="c2"><h3><a href="' . $URL . '/project/' . $this->project->id . '"' . $target . '>' . $this->project->name . '</a></h3><p><a href="' . $URL . '/project/' . $this->project->id . '"' . $target . '>' . $this->project->subtitle . '</a></p></div>'; $info .= '</div>'; //apoyar el proyecto $info .= '<div class="d i">'; if ($this->project->status == 3) { $info .= '<p>' . Text::get('wof-join-group') . '</p>'; $info .= '<a href="' . $URL . '/project/' . $this->project->id . '/invest"' . $target . '>' . Text::get('wof-support') . '</a>'; } else { $info .= '<p>' . Text::get('wof-join-comunity') . '</p>'; $info .= '<a href="' . $URL . '/project/' . $this->project->id . '/updates"' . $target . '>' . Text::get('wof-follow') . '</a>'; } $info .= '</div>'; //logo $info .= '<div class="e i">'; $info .= '</div>'; return $style . '<div class="wof" style="width:' . $width . 'px;">' . ($this->show_title ? $title : '') . '<div class="ct">' . $info . implode("", $content) . '</div></div>'; }
$types = $this['types']; $level = (int) $this['level'] ?: 3; $minimum = \amount_format($project->mincost) . ' 円'; $optimum = \amount_format($project->maxcost) . ' 円'; // separar los costes por tipo $costs = array(); foreach ($project->costs as $cost) { $costs[$cost->type][] = (object) array( 'name' => $cost->cost, 'description' => $cost->description, 'min' => $cost->required == 1 ? \amount_format($cost->amount) . ' 円' : '', 'opt' => \amount_format($cost->amount) . ' 円', 'req' => $cost->required ); } ?> <div class="widget project-needs"> <h<?php echo $level+1 ?> class="title"><?php echo Text::get('project-view-metter-investment'); ?></h<?php echo $level+1 ?>> <script type="text/javascript"> $(document).ready(function() { $("div.click").click(function() { $(this).children("blockquote").toggle(); $(this).children("span.icon").toggleClass("closed");
* GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Goteo. If not, see <http://www.gnu.org/licenses/agpl.txt>. * */ use Goteo\Library\Text; $project = $this['project']; $types = $this['types']; $level = (int) $this['level'] ?: 3; $minimum = \amount_format($project->mincost) . ' €'; $optimum = \amount_format($project->maxcost) . ' €'; // separar los costes por tipo $costs = array(); foreach ($project->costs as $cost) { $costs[$cost->type][] = (object) array('name' => $cost->cost, 'description' => $cost->description, 'min' => $cost->required == 1 ? \amount_format($cost->amount) . ' €' : '', 'opt' => \amount_format($cost->amount) . ' €', 'req' => $cost->required); } ?> <div class="widget project-needs"> <h<?php echo $level + 1; ?> class="title"><?php echo Text::get('project-view-metter-investment'); ?> </h<?php echo $level + 1; ?> >
<td style="text-align: right;"><?php echo \amount_format($project->mincost) . '€'; ?> </td> <td style="text-align: right;"><?php echo \amount_format($project->maxcost) . '€'; ?> </td> </tr> <tr> <td colspan="7"><?php if ($project->status < 3) { echo "Información al <strong>{$project->progress}%</strong>"; } if ($project->status == 3 && $project->round > 0) { echo "Le quedan {$project->days} días de la {$project->round}ª ronda. <strong>Conseguido:</strong> " . \amount_format($project->invested) . "€ <strong>Cofin:</strong> {$project->num_investors} <strong>Colab:</strong> {$project->num_messegers}"; } ?> </td> </tr> <tr> <td colspan="7"> IR A: <a href="/project/edit/<?php echo $project->id; ?> " target="_blank">[Editar]</a> <a href="/admin/users/?id=<?php echo $project->owner; ?> " target="_blank">[Impulsor]</a>
echo substr($user->id, 0, 20); ?> </strong></td> <td><a href="mailto:<?php echo $user->email; ?> "><?php echo $user->email; ?> </a></td> <td><?php echo $user->nprojs; ?> </td> <td><?php echo \amount_format($user->namount); ?> €</td> <td><?php echo $user->register_date; ?> </td> </tr> <tr> <td><a href="/admin/users/manage/<?php echo $user->id; ?> " title="Gestionar">[Gestionar]</a></td> <td><?php if ($user->nprojs > 0) { if (!isset($_SESSION['admin_node']) || isset($_SESSION['admin_node']) && $user->node == $_SESSION['admin_node']) {
"><?php echo Text::recorta($project->description, 500); ?> </a> </div> <div style="width: 25px;height: 2px;border-bottom: 1px solid #38b5b1;margin-bottom: 10px; margin-top:10px;"></div> <div style="font-size: 14px;vertical-align: top;text-transform: uppercase; padding-bottom:10px;"><?php echo Text::get('project-view-metter-investment'); ?> : <span style="font-size:14px;color:#96238F;font-weight: bold;"><?php echo Text::get('project-view-metter-minimum') . ' ' . \amount_format($project->mincost) . ' ' . utf8_encode(html_entity_decode('€')); ?> </span> <span style="color:#FFF;">_</span> <span style="font-size:14px;color:#ba6fb6;font-weight: bold;"><?php echo Text::get('project-view-metter-optimum') . ' ' . \amount_format($project->maxcost) . ' ' . utf8_encode(html_entity_decode('€')); ?> </span> </div> <!-- <div style="font-size: 12px;color: #434343;text-transform: uppercase;"><?php echo Text::get('project-rewards-header'); ?> <?php foreach ($icons as $icon) { ?> <img src="http://www.goteo.org/view/css/icon/s/<?php echo $icon; ?> .png" width="22" height="22" alt="<?php
<dt class="minimum" style="<?php echo $horizontal ? 'width' : '' ?>: <?php echo number_format($minimum_ratio) ?>%"><span><?php echo Text::get('project-view-metter-minimum'); ?></span></dt> <dd class="minimum" style="<?php echo $horizontal ? 'width' : '' ?>: <?php echo number_format($minimum_ratio) ?>%"><strong><?php echo \amount_format($minimum) ?></strong><span>円</span></dd> <dt class="reached"><span><?php echo Text::get('project-view-metter-got'); ?></span></dt> <dd class="reached"><strong><?php echo \amount_format($reached) ?></strong><span>円</span></dd> <dt class="days"><span><?php echo Text::get('project-view-metter-days'); ?></span></dt> <dd class="days"><strong><?php echo number_format($days) ?></strong><span><?php echo Text::get('regular-days'); ?></span></dd> <dt class="supporters"><span><?php echo Text::get('project-view-metter-investors'); ?></span></dt> <dd class="supporters"><strong><?php echo number_format($supporters) ?></strong><span>人</span></dd> </dl> <?php if ($activable) : ?> <div class="obtained"> <strong><?php echo \amount_format($reached) ?> <span>円</span></strong> <span class="percent"><?php echo number_format($minimum_done_per) ?>%</span> </div> <?php endif; ?> <?php /* // si en estado 3 ha alcanzado el optimo o segunda ronda, "aun puedes seguir aportando" junto al quedan tantos días if ($project->status == 3 && ($project->round == 2 || $project->amount >= $project->maxcost || ($project->round == 1 && $project->amount >= $project->mincost) )) : ?> <div class="keepiton"><?php echo Text::get('regular-keepiton') ?></div> <?php endif; */ ?> </div>
</div> <?php endif ?> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> <?php if (!empty($project->individual_rewards)) : ?> <div class="individual"> <h<?php echo $level+1 ?> class="title"><?php echo Text::get('project-rewards-individual_reward-title'); ?></h<?php echo $level+1 ?>> <ul> <?php foreach ($project->individual_rewards as $individual) : ?> <li class="<?php echo $individual->icon ?>"> <div class="amount"><?php echo Text::get('regular-investing'); ?> <span class="euro"><?php echo \amount_format($individual->amount); ?>円</span></div> <h<?php echo $level + 2 ?> class="name"><?php echo htmlspecialchars($individual->reward) ?></h<?php echo $level + 2 ?> <p><?php echo htmlspecialchars($individual->description)?></p> <?/*php if (!empty($individual->units)) : ?> <strong><?php echo Text::get('project-rewards-individual_reward-limited'); ?></strong><br /> <?php $units = ($individual->units - $individual->taken); echo Text::get('project-rewards-individual_reward-units_left', $units); ?><br /> <?php endif; ?> <div class="investors"><span class="taken"><?php echo $individual->taken; ?></span><?php echo Text::get('project-view-metter-investors'); ?></div> */?> </li> <?php endforeach ?> </ul> </div>
</div> <div class="minimum" style="<?php echo $horizontal ? 'width' : 'width' ?>: <?php echo number_format($minimum_ratio) ?>%"> <div class="left" style="<?php echo $horizontal ? 'width' : 'width' ?>: <?php echo number_format($minimum_left) ?>%"><!-- <strong><?php echo number_format($minimum_left) ?>%</strong> --></div> <div class="done" style="<?php echo $horizontal ? 'width' : 'width' ?>: <?php echo number_format($minimum_done) ?>%"><strong><?php echo number_format($minimum_done_per) ?>%</strong></div> </div> </div> <dl> <dt class="optimum"><?php echo Text::get('project-view-metter-optimum'); ?></dt> <dd class="optimum"><strong><?php echo \amount_format($optimum) ?></strong><span>円</span></dd> <dt class="minimum" style="<?php echo $horizontal ? 'height' : 'height' ?>: <?php echo number_format($minimum_ratio) ?>%"><span><?php echo Text::get('project-view-metter-minimum'); ?></span></dt> <dd class="minimum" style="<?php echo $horizontal ? 'height' : 'height' ?>: <?php echo number_format($minimum_ratio) ?>%"><strong><?php echo \amount_format($minimum) ?></strong><span>円</span></dd> <dt class="reached"><span><?php echo Text::get('project-view-metter-got'); ?></span></dt> <dd class="reached"><strong><?php echo \amount_format($reached) ?> </strong><span>円</span></dd> <dt class="days"><span><?php echo Text::get('project-view-metter-days'); ?></span></dt> <dd class="days"><strong><?php echo number_format($days) ?></strong><span><?php echo Text::get('regular-days'); ?></span></dd> <dt class="supporters"><span><?php echo Text::get('project-view-metter-investors'); ?></span></dt> <dd class="supporters"><strong><?php echo number_format($supporters) ?></strong>人</dd> <?php if ($activable) : ?> <dt class="percent"><?php echo Text::get('project-view-metter-rate'); ?></dt> <dd class="percent"><strong><?php echo number_format($minimum_done_per) ?></strong>%</dd> <?php endif; ?> </dl> <?php /* // si en estado 3 ha alcanzado el optimo o segunda ronda, "aun puedes seguir aportando" junto al quedan tantos días
echo substr($user->id, 0, 20); ?> </strong></td> <td><a href="mailto:<?php echo $user->email; ?> "><?php echo $user->email; ?> </a></td> <td><?php echo $user->nprojs; ?> </td> <td><?php echo \amount_format($user->namount) . Text::_('yen'); ?> </td> <td><?php echo date('Y/m/d H:i:s', strtotime(preg_replace('/\\//', '-', $user->register_date))); ?> </td> </tr> <tr class="record2"> <td><a href="/admin/users/manage/<?php echo $user->id; ?> " title="Gestionar">[<?php echo Text::_("Gestionar"); ?> ]</a></td>
?> </td> </tr> <tr> <td colspan="7"><?php if ($project->status < 3) { echo Text::_('information rate') . "<strong>{$project->progress}%</strong>"; } $round = ''; if ($project->status == 3 && $project->round > 0) { if ($project->round == 1) { $round = 'st'; } elseif ($project->round == 2) { $round = 'nd'; } echo "{$project->round}" . $round . Text::_('ronda') . "/" . Text::_('Le quedan') . "{$project->days}" . Text::_('días') . " <strong>" . Text::_('Achieved') . ":</strong> " . \amount_format($project->invested) . Text::_('yen') . " <strong>" . Text::_('Cofin') . ":</strong> {$project->num_investors} <strong>" . Text::_('Colab') . ":</strong> {$project->num_messegers}"; } ?> </td> </tr> <tr> <td colspan="7"> <?php echo Text::_("IR A"); ?> : <a href="/project/edit/<?php echo $project->id; ?> " target="_blank">[<?php echo Text::_("Edit project");