Ejemplo n.º 1
0
Archivo: memo.php Proyecto: horde/horde
         /* Check our results. */
         if (!empty($haveError)) {
             $notification->push(sprintf(_("There was an error saving the note: %s"), $haveError), 'horde.warning');
         } else {
             $notification->push(sprintf(_("Successfully saved \"%s\"."), $memo_desc), 'horde.success');
         }
     }
     /* Return to the notepad view. */
     if (!Horde_Util::getFormData('save_only')) {
         Horde::url('list.php', true)->redirect();
     }
     break;
 case 'delete_memos':
     /* Delete the note if we're provided with a valid note ID. */
     if (!is_null($memo_id) && Mnemo::getMemo($memolist_id, $memo_id)) {
         if (getShare($memolist_id)->hasPermission($user, Horde_Perms::DELETE)) {
             $storage = $injector->getInstance('Mnemo_Factory_Driver')->create($memolist_id);
             try {
                 $storage->delete($memo_id);
                 $notification->push(_("The note was deleted."), 'horde.success');
             } catch (Mnemo_Exception $e) {
                 $notification->push(sprintf(_("There was an error removing the note: %s"), $e->getMessage()), 'horde.warning');
             }
         } else {
             $notification->push(_("Access denied deleting note."), 'horde.warning');
         }
     }
     /* Return to the notepad. */
     Horde::url('list.php', true)->redirect();
 default:
     Horde::url('list.php', true)->redirect();
Ejemplo n.º 2
0
Archivo: edit.php Proyecto: psyray/mmc
   After adding or editing the share (above) then just show the share again (below) */
if ($_GET["action"] == "add") {
    $title = _T("Add a share");
    $activeItem = "add";
    $shareName = "";
    $sharePath = "";
    $shareDescription = "";
    $shareEnabled = "checked";
    $shareGuest = "";
    $shareGroup = "";
    $shareUser = "";
} else {
    $share = urldecode($_GET["share"]);
    $title = _T("Properties of share {$share}");
    $activeItem = "index";
    $shareDetails = getShare($share);
    $shareName = $shareDetails[0];
    $sharePath = $shareDetails[1];
    $shareEnabled = $shareDetails[2] ? "checked" : "";
    $shareDescription = $shareDetails[3];
    $shareGuest = $shareDetails[4] ? "checked" : "";
    $shareGroup = array();
    $shareUser = array();
}
$page = new PageGenerator($title);
$sidemenu->forceActiveItem($activeItem);
$page->setSideMenu($sidemenu);
$page->display();
?>

<form id="Form" method="post" action="" onSubmit="autogroupObj.selectAll(); autouserObj.selectAll(); autoadminObj.selectAll(); return validateForm();">
Ejemplo n.º 3
0
    ?>
">
					<button class="button" type="submit" ></button>
				</form>
			</div>
		</div>
			<?php 
}
?>
            <?php 
if ($_MODULE['banner_fenxiang']) {
    ?>
	
						<div class="banner fenxiang">	
						 <?php 
    echo getShare("", $_shop->id, 3, "shop", "fx");
    //分享
    ?>
	
		</div>
        	<?php 
}
?>
            <?php 
if ($_MODULE[' h-goods']) {
    ?>
	
            <div class="h-goods" style="width:386px;"><div class="h-item-box">
	 	 <a class="h-picbox" href="http://item.taobao.com/item.htm?id=41150599888" target="_blank" style="background-image:url(http://img01.taobaocdn.com/bao/uploaded/i1/TB1GyvGGXXXXXbMaXXXXXXXXXXX_!!0-item_pic.jpg_80x80.jpg);"></a>
	 	 <div class="h-info h-row-2" style=""><a style="" class="h-desc" href="http://item.taobao.com/item.htm?id=41150599888" target="_blank">潜江虾皇 卤香大虾 秘制卤味小龙虾 真空包装加双冰袋 包邮</a><span class="h-price" style="">RMB<em>500.00</em></span><div class="h-tag h-tag-0" style="">新品</div></div>
	 	 </div><div class="h-item-box">
Ejemplo n.º 4
0
</b></span><span class="price" style=""><em><?php 
        echo number_format($items[$n]['discountPrice'], $_MODULE['jinpinzs_pricexshu']);
        ?>
</em><?php 
        echo $_MODULE['price_uint'];
        ?>
</span>
											       			</div>
															<div class="tg-btnbox show_share show_sc show_like">
																	<?php 
        if (in_array("show_collect", $pbtn_show)) {
            echo getFav("", $items[$n]['id'], "item", "sc");
        }
        //收藏
        if (in_array("show_share", $pbtn_show)) {
            echo getShare("", $items[$n]['id'], 3, "item", "share tg-btn");
        }
        //分享
        if (in_array("show_like", $pbtn_show)) {
            echo getLike("", $items[$n]['id'], 2, "item", "like tg-btn");
        }
        //喜欢
        ?>
</div>
										       		</div>
										      </div> 
                     <?php 
    }
    ?>
                                              
                                                </div>
Ejemplo n.º 5
0
);background-position:<?php 
            echo $_MODULE['pic_cut'];
            ?>
;" href="<?php 
            echo $main_item[$n][0]['url'];
            ?>
" target="_blank"></a></li>
                  <?php 
        }
        ?>
                </ul>
              </div>
              <div class="show_share show_sc tg-btnbox"><span class="btn-bg bbg1" style="">
                <?php 
        if (in_array("show_share", $pbtn_show)) {
            echo getShare("", $main_item[0][$n]['id'], 3, "item", "share tg-btn");
        }
        //分享
        ?>
                </span><span class="btn-bg" style="">
                <?php 
        if (in_array("show_collect", $pbtn_show)) {
            echo getFav("", $main_item[$n][0]['id'], "item", "sc");
        }
        //收藏
        ?>
                </span></div>
            </div>
            <div class="info">
              <div class="info-r1 show_sales " style=""><span class="price"><?php 
        echo $_MODULE['price_pre'];