Thursday, 18 December 2014

CDetailVIEW in YII -- Make font bold

Yii::CDetailView-> Make the value font bold
This is just the simple solution:
Change your data type to html.
array(
                    'label'=>'Leave Type',
                    'type'=>'html',
                    'value'=>'<b>'.$model->leaveCode->leave_type.'</b>',
                ),

Yii:: Highlight row color in CGridView using rowCssClassExpression

If you’re using CGridView and want to highlight or focus on certain row, you can use rowCssClassExpression attribute in your gridview.
Here is the working method that works with combine even/odd class.
$this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'leave-form-grid',
    'dataProvider'=>$model->approve()->search(),
    'filter'=>$model,
        'rowCssClassExpression'=>'($data->cancel_status == "Y")? "cancel" : "row_id_" . $row . " " . ($row%2?"even":"odd")',
    'columns'=>array(
        //'id',
        'staff_id',
                'staff.name',

Dynamic Textbox Creation in DOTNET

--------------------- ASPX CODE --------------------------------------
 
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="dynamictxtboxex.aspx.vb" Inherits="dynamictxtboxex" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">

<title>Untitled Page</title><script type="text/javascript" >function GetAlert(txtDynamic) {if(document.getElementById(txtDynamic).value!="")alert(document.getElementById(txtDynamic).value);
}
function GetPostBack(txtDynamic) {if (window.event.keyCode == 13) {document.getElementById("htxtBox").value = txtDynamic;document.form1.submit();
}

}
</script></head><body><form id="form1" runat="server"><input type="hidden" id="htxtBox" runat="server" value=""/><div><asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder></div></form></body></html>

---------------------------------------- VB CODE -------------------------------
PartialClass dynamictxtboxexInherits System.Web.UI.PageDim Tbl As TableDim tblCell As TableCellDim tblRow As TableRowDim txtDynamic As TextBox
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadIf Not Page.IsPostBack ThenTbl =New TableTbl.Rows.Add(GetTableRow(1))
PlaceHolder1.Controls.Add(Tbl)
Session(
"DynamicTable") = TblElseTbl = Session("DynamicTable")If htxtBox.Value = "Txt" & Tbl.Rows.Count.ToString ThenTbl.Rows.Add(GetTableRow(Tbl.Rows.Count + 1))
PlaceHolder1.Controls.Add(Tbl)
htxtBox.Value =
""ElsePlaceHolder1.Controls.Add(Session("DynamicTable"))End IfEnd IfEnd SubPublic Function GetTableRow(ByVal Count As String) As TableRowtxtDynamic =New TextBoxtxtDynamic.ID ="Txt" & CounttxtDynamic.Attributes.Add("onmousedown", "GetAlert('" & "Txt" & Count & "')")txtDynamic.Attributes.Add("onkeydown", "GetPostBack('" & "Txt" & Count & "')")tblRow =New TableRowtblCell =New TableCelltblCell.Text ="Enter value for " & CounttblRow.Cells.Add(tblCell)
tblCell =
New TableCelltblCell.Controls.Add(txtDynamic)
tblRow.Cells.Add(tblCell)
Return tblRowEnd FunctionEndClass

Computer TIP

కొన్ని ఆపరేటింగ్ సిస్టమ్స్ Data Processing సమయంలో Ram memory బదులుగా hard disk memory ని use చేసుకుంటాయి . ఈ memory ని Virtual memory అంటారు.మనం shutdown చేసిన వెంటనే ఈ data clear అవ్వటానికి ఈ విధంగా చేయ్యండి.
start ->control panel->Administrative Tools->Local Security Settings ని Double click చేయ్యండి. అందులో Local Policies->Security Options->Shutdown: Clear virtual memory pagefile Double click చేయ్యండి.ఒక dialog box వస్తుంది.దాన్ని Enable చేసి ok చేయ్యండి

How to install Call Manager 8.x in VMWare?

How to install Call Manager 8.x in VMWare?  

Step-1

Turn off your Window's Firewall and set a static IP in your Loopback Adapter.  

Step-2
Configure a NTP Server in GNS and connect with VMware through Cloud. 
Step-3 (a)
Now Configure VMware with these settings. Select Typical option. 
 
Step-3 (b)
                  If you have CUCM-8.0 IOS in DVD then select Installer disc option, If you have CUCM-8.0 IOS in your hard disk or flash drive then select Installer disc image file (ios).Do not select option I will install the operating system later. 
 
Step-3 (c)
                 Provide information like Name, User name, Password as you wish.
Step-3 (d)
                 Provide Virtual machine name e.g (CUCM 8) and Browse the location where you want to save the CUCM 8 files. 
 
Step-3 (e)
                 Allocate hard disk size, Minimumm size of hard disk for CUCM 8 is 72 GB and select option Store virtual disk as a single file. 
 
Step-3 (f)
                Allocate Memory more than 2GB to run CUCM 8 properly and also configureNetwork Adapter as a Bridged. 
After step-3 virtual machine settings are complete. Power On this Virtual machine (CUCM 8).
 
Step-4 (a)
                 If you want to check your media resources (e.g hard disk, RAM etc) then selectYes, but if don't select No. This media check is Optional. 
 
Step-4 (b)
                 Cisco Unity Connection and CUCM Business Edition are not supported on current hardware. 
 
Step-4 (c)
                 Select Yes for further installation. 

Step-4 (d)
                 Select Proceed for further installation. 
 
Step-4 (e)
                 If you have any Upgrade patch regarding CUCM 8.0 then select Yes otherwise select No. 
 
Step-4 (f)
                Select Continue for further installation. 
  
Step-4 (g)
                Select your Timezone and select Yes for further installation.
Step-4 (i)
                If you want to change MTU size then select Yes, if don' select Nom, then next step If you want DHCP on this machine select Yes, if you don' select.
 
Step-4 (k)
                Provide Network configuration. 
 
Step-4 (l)
               If you want to enable DNS client on this machine select Yes otherwise No. 
Step-4 (m)
                 Provide Administrator Login Configuration. 
 
Step-4 (n)
                Provide Certificate Information. This option about your organization information.
Step-4 (o)
                Select Yes if this CUCM is Publisher. Select No if you have already a Publisher. 
 
Step-4 (p)
                Provide NTP server's IP address as provided in step-2. 
 
Step-4 (q)
                Provide Security Password. This password is used in Clustering. 
 
Step-4 (r)
                If you want to configure SMTP select Yes but if you don't select No. Now ProvideApplication User Configuration. 
 
Step-4 (t)
               Select Ok if you provide correct information. Select Back if you want to change anything.
 
Cisco Unified Communications Manager Version 8.0 
Cisco Unified Communications Manager Version 8.0 is the powerful call-processing component of the Cisco Unified Communications Solution. It is scalable, distributable, and highly available enterprise IP telephony call-processing solution. Follow the given points to install CUCM 8 in vmware step by step. 
Step-1
             Turn off your Window's Firewall and set a static IP in your Loopback Adapter.  

Step-2
            Configure a NTP Server in GNS and connect with VMware through Cloud