Modal popup php, bootstrap - modalpopup

I have 10 products in product gallery page. if I click on view more button of a product. I need to display its product details in popup.
Code:
<li data-dialogModalBind="#product-1" class="product">
<?php echo '<img src="" />';?>
<h4><?php echo $name?></h4>
<span>View More</span>
In POPup section(In same page)
<div id="product-1" class="dialog_content" style="display:none">
<div class="dialogModal_header">Product Details</div>

Related

Semantic-ui integration with Laravel 5.7

Semantic-ui is integrated with my laravel app. All buttons are working but Menubar is not working i.e whatever code I copied from documentation it is showing like that only.
I have linked these files -
<link rel="stylesheet" type="text/css" href="{{asset('semantic/dist/semantic.min.css')}}">
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="{{asset('semantic/dist/semantic.min.js')}}"></script>
<div class="ui secondary menu">
<a class="active item"> Home </a>
<a class="item"> Messages </a>
<a class="item"> Friends </a>
<div class="right menu">
<div class="item">
<div class="ui icon input">
<input type="text" placeholder="Search...">
<i class="search link icon"></i>
</div>
</div>
<a class="ui item"> Logout </a>
</div>
By default Home is active but when i click or focus on another item i.e messages or Friends , it is not showing as active otherwise hovering effect is working fine.
As you see, only the first menu item is marked as active in your code, so why do you expect any other menu items to be marked as active when you click on them?
<a class="active item"> Home </a>
You should detect which menu item is active when you render the menu and set active class to the necessary item.
So, for example, when you are on "Home" page your menu should look like this:
<a class="active item"> Home </a>
<a class="item"> Messages </a>
<a class="item"> Friends </a>
But when your are on the "Friends" page your menu should look like this instead:
<a class="item"> Home </a>
<a class="item"> Messages </a>
<a class="active item"> Friends </a>
And everything else depends on your implementation (either it's PHP or other server-side language if you generate your menu or JavaScript if you toggle its state in the browser).

Split views in different tabs

I have a page where I want the data to be showed in multiple tabs (and the data may only be loaded when clicked on the tab):
View
#model project.Models.AdminModels.Module
#{
ViewBag.Title = "Module";
}
<h2>#ViewBag.Title: #Model.Name</h2>
<div class="ui secondary pointing menu">
<a class="item" asp-controller="Module" asp-action="Details" asp-route-id="#Model.ID">
Details
</a>
<a class="item" asp-controller="Module" asp-action="Menus" asp-route-id="#Model.ID">
Menus
</a>
</a>
<a class="item" asp-controller="Module" asp-action="Menus" asp-route-id="#Model.ID">
Other tabs
</a>
</div>
<div class="ui segment" id="content">
</div>
Is their a way that I can load the data in the content div, without reloading and redefining the whole page?

App-Framework How to load a "nav " dynamically when loading a panel with ajax?

How can the "nav menu" be dynamically loaded when loading a panel with ajax?
I've tried adding it inside the panel and it works, but it creates a new menu each time an ajax call with the same id.
This is the panel load by ajax, navuser1 is loaded to doom every ajax call.
<div class="panel" title="xxxx" id="panel1" data-nav="navuser1" >
<ul class="list">
<li> Load Ajax Panel 1 </li>
</ul>
<nav id="navuser1">
<ul class="list">
<li class="divider">Menus</li>
<li><a href="/users" class="icon home">Home User</li>
</ul>
</nav>
</div>

Need to display date and time above Login in Magento page

I need to display date and time above Login in Magento page. I changed the Menus of My Account, Login with Contact Us & About Us, and now I need to display date and time above these options in header.phtml.
I used the below code:
'<div class="date-time">
<?php echo strftime('%c');?>
</div>'
Time and date is showing on site, but not exactly where I want. Any support will be highly apreciated.
Site: www.ozams.com
You just need to move your code above ul tag like:
<div class="header-right">
...............
<div class="clear"></div>
<div style="text-align: right;" class="date-time">
<?php echo strftime('%c');?>
</div>
<div class="clear"></div>
<ul class="links">
<li class="first"><a title="Contact Us" href="contact-us">Contact us</a></li>
<li class=" last"><a title="About Us" href="http://ozams.com/index.php/about-us/">About Us</a></li>
</ul>
</div>

Navigating and updating content in a CodeIgniter application

I am using CI with Twitter Bootstrap for a basic site:
In my main layout view this is how the main content area is setup:
<div class="container-fluid">
<div class="row-fluid">
<div class="span1"></div>
<div class="span8">
<?php echo $this->load->view($subview); ?>
</div>
<div class="span3" id="sidebar">
<?php echo $this->load->view($this->global_data['sidebarview']); ?>
</div>
</div>
</div>
One sidebar view is this:
<div class="container-fluid" id="sidebar-about">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header"><i class="icon-info-sign"></i> More about us</li>
<li class="active">Who are we?</li>
<li>Why we did it?</li>
<li>What we promise?</li>
<li class="nav-header"><i class="icon-asterisk"></i> Services</li>
<li>Free</li>
<li>Premium</li>
</ul>
</div><!--/.well -->
</div><!--/span-->
Every link in this sidebar i want to update the div with class="span8" from my main layout.
How should i do that? Should i use ajax calls to update the content of the span8 div? or just create more methods in about controller?

Resources