Exemplo n.º 1
0
    public function frameResponse(\FrameResponseObject $frameResponseObject)
    {
        $breadcrumb = new \Widgets\Breadcrumb();
        $breadcrumb->setData(array(array("name" => \Portfolio::getInstance()->getText("Portfolio/"), "link" => $this->getExtension()->getExtensionUrl() . "Myportfolio/"), array("name" => gettext("My Friends and Groups/"), "link" => $this->getExtension()->getExtensionUrl() . "Groups/"), array("name" => gettext("Create Group"))));
        $tabBar = new \Widgets\TabBar();
        $tabBar->setTabs(array(array("name" => \Portfolio::getInstance()->getText("Dashboard"), "link" => $this->getextension()->getExtensionUrl() . "/"), array("name" => gettext("Portfolio"), "link" => $this->getExtension()->getExtensionUrl() . "myportfolio/"), array("name" => gettext("Shared Portfolios"), "link" => $this->getExtension()->getExtensionUrl() . "SharedProfiles/")));
        $menu = new \Widgets\DropdownBox();
        $menu->setLabel(\Portfolio::getInstance()->getText("Group Category"));
        $menu->addOption(\Portfolio::getInstance()->getText("Educational"));
        $menu->addOption(\Portfolio::getInstance()->getTex("Office"));
        $menu->addOption(\Portfolio::getInstance()->getText(" Hobbies"));
        $input = new \Widgets\TextInput();
        $grid = new \Widgets\Grid();
        $grid->setData(array("headline" => array(array("name" => \Portfolio::getInstance()->getText("Group Dscription"), "colspan" => "2")), "rows" => array(array(array("content" => \Portfolio::getInstance()->getText("Group Name:"), "type" => "label"), array("content" => $input, "type" => "value")), array(array("content" => \Portfolio::getInstance()->getText("Group Details:"), "type" => "label"), array("content" => $input, "type" => "value")))));
        $actionBar2 = new \Widgets\ActionBar();
        $actionBar2->setActions(array(array("name" => \Portfolio::getInstance()->getText("Save"), "link" => $this->getExtension()->getExtensionUrl() . ""), array("name" => gettext("Cancel"), "link" => $this->getExtension()->getExtensionUrl() . "")));
        $html = <<<end




<style type="text/css">


</style>

<div class="headline">
\t<h1>Create New Group</h1>
</div>



<ul class="tabBar">
        
    <li class="tabIn"><a href="./..">Dashboard</a></li>
        
    <li class="tabIn"><a href="../profile/">Profile</a></li>
        
    <li class="tabIn"><a href="../myPortfolio/">Portfolio</a></li>
        
    <li class="tabOut"><a href="../groups/">Groups</a></li>
    
    <li style="clear: left;">
</li></ul>
<br>

<table class="grid" cellspacing="0" cellpadding="5" width="100%">

\t <tr>
\t\t\t<th class="group" colspan="2">Group Details</th>
\t </tr>
\t <tr>
<td class="label">Group name:</td>
\t<td class="value">
\t\t<input type="text" "size="30" >
</td>
<tr>
<td class="label">Group Type:</td>
<td class="value">
<select name="values[OBJ_DESC]">
<option value=""></option>
<option selected="selected" value="Educational">Educational</option>
<option value="Professional">Profesional</option>
<option value="General">General</option>
</select>
</td>
</tr>
<td class="label">Group Description:</td>
<td class="value">
<textarea wrap="virtual" rows="10" style="width: 70%;" name="values[USER_PROFILE_DSC]"></textarea>
<br>
<a class="textformat_button" title="boldface" href="javascript:insert('[b]', '[/b]', 'formular', 'values[USER_PROFILE_DSC]')">
<b>B</b>
</a>
<a class="textformat_button" title="italic" href="javascript:insert('[i]', '[/i]', 'formular', 'values[USER_PROFILE_DSC]')">
<i>I</i>
</a>
<a class="textformat_button" title="underline" href="javascript:insert('[u]', '[/u]', 'formular', 'values[USER_PROFILE_DSC]')">
<u>U</u>
</a>
<a class="textformat_button" title="strikethrough" style="text-decoration: line-through;" href="javascript:insert('[s]', '[/s]', 'formular', 'values[USER_PROFILE_DSC]')">S</a>
<a class="textformat_button" title="image" href="javascript:insert('[img]http://', '[/img]', 'formular', 'values[USER_PROFILE_DSC]')">IMG</a>
<a class="textformat_button" title="web link" href="javascript:insert('[url=http://]', '[/url]', 'formular', 'values[USER_PROFILE_DSC]')">URL</a>
<a class="textformat_button" title="email link" href="javascript:insert('[mail=@]', '[/mail]', 'formular', 'values[USER_PROFILE_DSC]')">MAIL</a>
</td>
</tr>
\t </table>
\t <div class="buttons">
<a class="button">Save</a>
</div>
\t

end;
        $frameResponseObject->setTitle("Creategroup");
        $rawHtml = new \Widgets\RawHtml();
        $rawHtml->setHtml($html);
        $frameResponseObject->addWidget($breadcrumb);
        //$frameResponseObject->addWidget($tabBar);
        $frameResponseObject->addWidget($menu);
        $frameResponseObject->addWidget($grid);
        $frameResponseObject->addWidget($actionBar2);
        //$frameResponseObject->addWidget($rawHtml);
        return $frameResponseObject;
    }
Exemplo n.º 2
0
    public function frameResponse(\FrameResponseObject $frameResponseObject)
    {
        $breadcrumb = new \Widgets\Breadcrumb();
        $breadcrumb->setData(array(array("name" => \Portfolio::getInstance()->getText("Portfolio/"), "link" => $this->getExtension()->getExtensionUrl() . "Myportfolio/"), array("name" => \Portfolio::getInstance()->getText("File Upload"))));
        $tabBar = new \Widgets\TabBar();
        $tabBar->setTabs(array(array("name" => \Portfolio::getInstance()->getText("Dashboard"), "link" => $this->getextension()->getExtensionUrl() . "/"), array("name" => \Portfolio::getInstance()->getText("Portfolio"), "link" => $this->getExtension()->getExtensionUrl() . "myportfolio/"), array("name" => \Portfolio::getInstance()->getText("Shared Portfolios"), "link" => $this->getExtension()->getExtensionUrl() . "SharedProfiles/")));
        $clearer = new \Widgets\Clearer();
        $upload = new \Widgets\UploadFile();
        $upload->setLabel(\Portfolio::getInstance()->getText("Upload File"));
        $menu = new \Widgets\DropdownBox();
        $menu->setLabel(\Portfolio::getInstance()->getText("type of group"));
        $menu->addOption(\Portfolio::getInstance()->getText("New Folder"));
        $menu->addOption(\Portfolio::getInstance()->getText("Folder 1"));
        $menu->addOption(\Portfolio::getInstance()->getText("Folder 2"));
        $actionBar2 = new \Widgets\ActionBar();
        $actionBar2->setActions(array(array("name" => \Portfolio::getInstance()->getText("Save"), "link" => $this->getExtension()->getExtensionUrl() . ""), array("name" => gettext("Cancel"), "link" => $this->getExtension()->getExtensionUrl() . "")));
        $html = <<<end




<style type="text/css">

.uploadform td {
    font-size: 0.9167em;
    line-height: 1.3333em;
}

</style>

<div class="headline">
\t<h1>File Upload</h1>
</div>





<ul class="tabBar">
        
    <li class="tabIn"><a href="./..">Dashboard</a></li>
        
    <li class="tabIn"><a href="../profile/">Profile</a></li>
        
    <li class="tabOut"><a href="../myportfolio/">Portfolio</a></li>
        
    <li class="tabIn"><a href="../groups/">Groups</a></li>
    
    <li style="clear: left;">
</li></ul>
<br>
Portfolio > file upload <br><br>
<td class="label" Upload File:</td>


<div>
<tr class="uploadform">
<th>
<p>
File:
<input type="file" size="45" name="filename1">
</p>

<p>
 Folder:
<td class="value">
<select name="values[OBJ_DESC]">
<option value=""></option>
<option value="New Folder" selected="selected">New Folder</option>
<option value="Folder 1">Folder 1</option>
<option value="Folder 2">Folder 2</option>
<option value="Folder 3">Folder 3</option>
</select>
</td>
<br>
<br>
<br>
<input type="submit" value="Submit" name=".submit">
</form>
end;
        $frameResponseObject->setTitle("Fileupload");
        $rawHtml = new \Widgets\RawHtml();
        $rawHtml->setHtml($html);
        $frameResponseObject->addWidget($breadcrumb);
        //$frameResponseObject->addWidget($tabBar);
        $frameResponseObject->addWidget($clearer);
        $frameResponseObject->addWidget($upload);
        $frameResponseObject->addWidget($clearer);
        $frameResponseObject->addWidget($menu);
        $frameResponseObject->addWidget($actionBar2);
        //$frameResponseObject->addWidget($rawHtml);
        return $frameResponseObject;
    }
Exemplo n.º 3
0
    public function frameResponse(\FrameResponseObject $frameResponseObject)
    {
        $breadcrumb = new \Widgets\Breadcrumb();
        $breadcrumb->setData(array(array("name" => \Portfolio::getInstance()->getText("Portfolio/"), "link" => $this->getExtension()->getExtensionUrl() . "Myportfolio/"), array("name" => \Portfolio::getInstance()->getText("My Friends and Groups"))));
        $actionBar = new \Widgets\ActionBar();
        $actionBar->setActions(array(array("name" => \Portfolio::getInstance()->getText("Search"), "link" => $this->getExtension()->getExtensionUrl() . "Searchgroups/"), array("name" => \Portfolio::getInstance()->getText("Create New"), "link" => $this->getExtension()->getExtensionUrl() . "Creategroups/")));
        $menu = new \Widgets\DropdownBox();
        $menu->setLabel(\Portfolio::getInstance()->getText("Type Of Group"));
        $menu->addOption(\Portfolio::getInstance()->getText("All Groups"));
        $menu->addOption(\Portfolio::getInstance()->getText("Groups Made by me"));
        $menu->addOption(\Portfolio::getInstance()->getText("Groups i am Connected"));
        $boxGroup = new \Widgets\PortfolioViewBox();
        $boxGroup->setTitle(\Portfolio::getInstance()->getText("Group One"));
        $boxGroup->setContent(" Shows the details about the group.number of members connected,etc.");
        $boxGroup->setButtons(array(array("name" => "Dlete Group", "link" => "#")));
        $clearer = new \Widgets\Clearer();
        $boxGroup2 = new \Widgets\PortfolioViewBox();
        $boxGroup2->setTitle(\Portfolio::getInstance()->getText("Group two name"));
        $boxGroup2->setContent(" Shows the details about the group.number of members connected,etc.");
        $boxGroup2->setButtons(array(array("name" => "Dlete Group", "link" => "#")));
        $html = <<<end



<style type="text/css">

select {
    border: 1px solid #D1D1D1;
}

select {
    margin-right: 0.25em;
    padding: 0.16em;
    }
    
   .box_view {
\t\tborder: 1px solid #ccc;
\t\tmargin: 5px 10px 15px 10px;
\t\tbackground-color: #ccffcc;
\t\twidth: 85%;
\t\tpadding:10px;
\t\tfloat: left;
}

a, a:link, a:active, a:visited {
    color: #3092CE;
    text-decoration: none;
    }
</style>



<div class="headline">
\t<h1>My Friends and Groups</h1>
</div>

<div class="actionBar">
    
\t<a href="../Searchgroups/" class="button">Search</a>
\t
\t<a href="../Creategroups/" class="button">Create New</a>
\t
\t<a href="" class="button">Add Friend</a>
\t
</div>



<select tabindex="1" name="options" id="filter_options" class="select autofocus">
\t<option selected="selected" value="all">All Groups</option>
\t<option value="admin">Groups made by me</option>
\t<option value="member">Groups i am connected to </option>
\t<option value="invite">Groups I'm Invited To(shows pending group requests)</option>
</select>

<br>


<td><div class="box_view">

     <h2><a href="">Group name 1</a></h3>
     <p>Shows the details about the group.number of members connected,etc.</p>
     
     <div class="buttons">

<a class="button" ">Delete Group</a>
</div>
     
<td>
</div>
<td><div class="box_view">

     <h2><a href="">Group name 2</a></h3>
     <p>Shows the details about the group.number of members connected,etc.</p>
      
     <div class="buttons">

<a class="button" ">Delete Group</a>
</div>
     
<td>


</div>

end;
        $frameResponseObject->setTitle("Groups");
        $rawHtml = new \Widgets\RawHtml();
        $rawHtml->setHtml($html);
        $frameResponseObject->addWidget($breadcrumb);
        $frameResponseObject->addWidget($actionBar);
        $frameResponseObject->addWidget($clearer);
        $frameResponseObject->addWidget($menu);
        $frameResponseObject->addWidget($clearer);
        $frameResponseObject->addWidget($boxGroup);
        $frameResponseObject->addWidget($boxGroup2);
        //$frameResponseObject->addWidget($rawHtml);
        return $frameResponseObject;
    }