Ejemplo n.º 1
0
					<colgroup>
						<col style="width: 33%" />
						<col style="width: 34%" />
						<col style="width: 33%" />
					</colgroup>
					<tbody>
						<tr>
						<?php 
                foreach ($results as $progress => $result) {
                    $column++;
                    $accessible = true;
                    if ($result["release_date"] && $result["release_date"] > time() || $result["release_until"] && $result["release_until"] < time()) {
                        $accessible = false;
                    }
                    echo "<td" . (!$accessible ? " class=\"na\"" : "") . " style=\"vertical-align: top; text-align: center\">";
                    echo "\t<a href=\"" . COMMUNITY_URL . $COMMUNITY_URL . ":" . $PAGE_URL . "?section=view-photo&amp;id=" . $result["cgphoto_id"] . "\">" . communities_galleries_fetch_thumbnail($result["cgphoto_id"]) . "</a>";
                    echo "\t<div class=\"content-small\">\n";
                    echo "\t<strong id=\"photo-" . $result["cgphoto_id"] . "-title\">" . html_encode(limit_chars($result["photo_title"], 26)) . "</strong>";
                    echo "\t<br />";
                    echo galleries_photo_module_access($result["cgphoto_id"], "edit-photo") ? " (<a class=\"action\" href=\"" . COMMUNITY_URL . $COMMUNITY_URL . ":" . $PAGE_URL . "?section=edit-photo&amp;id=" . $result["cgphoto_id"] . "\">edit</a>)" : "";
                    echo galleries_photo_module_access($result["cgphoto_id"], "delete-photo") ? " (<a class=\"action\" href=\"javascript:photoDelete('" . $result["cgphoto_id"] . "')\">delete</a>)" : "";
                    if ($community_galleries_select != "") {
                        echo galleries_photo_module_access($result["cgphoto_id"], "move-photo") ? " (<a class=\"action\" href=\"javascript:photoMove('" . $result["cgphoto_id"] . "')\">move</a>)" : "";
                    }
                    echo "\t</div>";
                    echo "</td>";
                    if ($progress + 1 == $total_photos && $column != 3) {
                        echo "<td colspan=\"" . (3 - $column) . "\">&nbsp;</td>\n";
                    } elseif ($column == 3) {
                        $column = 0;
                        echo "</tr>\n";
Ejemplo n.º 2
0
															<td colspan="2">
																<h3 id="photo_<?php 
                            echo $tmp_photo_id;
                            ?>
_title">Photo <?php 
                            echo $tmp_photo_id + 1;
                            ?>
</h3>
															</td>
														</tr>
													</thead>
													<tbody>
														<tr>
															<td style="vertical-align: top;">
																<?php 
                            echo communities_galleries_fetch_thumbnail($photo_upload["photo_id"], $photo_upload["title"]);
                            ?>
															</td>
															<td style="vertical-align: top;">
																<h3><?php 
                            echo html_encode($photo_upload["title"]);
                            ?>
</h3>
																<div>
																	<?php 
                            echo nl2br(html_encode($photo_upload["description"]));
                            ?>
																</div>
															</td>
														</tr>
													</tbody>