小编Bou*_*ady的帖子

laravel 4.2使用加密列进行查询

我目前在我的控制器中有这个代码,这里显示一组记录是我的代码

public function view()
{
    $title = "View Guardian Information";
    $vPa   = DB::table('dbo_guardianinformation')
                ->join('dbo_cities', 'dbo_guardianinformation.CityID', '=' , 'dbo_cities.CityID')
                ->select('dbo_guardianinformation.ParentAccountID','dbo_guardianinformation.FirstName','dbo_guardianinformation.LastName','dbo_guardianinformation.Roles',
                        'dbo_guardianinformation.Address','dbo_cities.CityName','dbo_guardianinformation.Status','dbo_guardianinformation.EmailAddress')
                ->get();
     //encrypt decrypt algo
    // $sptkey  = md5('sample_encryptkey');
    // $enPass  = rtrim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $sptkey, $defPass, MCRYPT_MODE_ECB)));
    // $decPass = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $sptkey, base64_decode($enPass), MCRYPT_MODE_ECB));

    return View::make('ssims.view_parentAccount',compact('title','vPa'));
}
Run Code Online (Sandbox Code Playgroud)

我的问题是该列dbo_guardianinformation.Address包含加密记录我目前不知道我应该在哪里放置解密代码,以便当$vPa将传递给视图时它已经包含解密的记录.有任何想法吗?感谢任何愿意提供帮助的人

php encryption cryptography laravel laravel-4

5
推荐指数
1
解决办法
1225
查看次数

在 PHP 5.6.12 中启用 DOTNET COM 扩展

在 PHP 项目中,我需要使用DOTNET COM 库,但我看到它被禁用。
我不知道如何启用它,所以我尝试取消注释php.ini文件中 [com] 部分下的以下几行:

com.typelib_file = php_com_dotnet.dll 
com.allow_dcom = true
pextension=php_com_dotnet.dll 
com.autoregister_typelib = true
com.autoregister_casesensitive = false
com.autoregister_verbose = true
com.code_page=
Run Code Online (Sandbox Code Playgroud)

我仍然收到错误说Class 'COM' not found
关于该怎么做的任何建议?
谢谢。

.net php com php-extension

4
推荐指数
1
解决办法
2万
查看次数

z-index下的div:-1不可点击

嗨我目前有一个页面上有多个图层我有这个内容容器,我已经设置在背面.在我的styles.css这里是我的代码

#content-container{
/**position**/
position: absolute;
top: 0px;
padding-top: 80px;
padding-left: 80px;
z-index: -1 !important;
/**size**/
width: 100%;
height: 100%;
}
Run Code Online (Sandbox Code Playgroud)

这里也是account-container代码

#account-container {
/**position**/
float:right;
margin-top:2px;
margin-right:-60px;

/**size**/
width: 350px;
height: 220px;
border-radius: 5px;

/**color**/
color:black;
background-color: white;
Run Code Online (Sandbox Code Playgroud)

}

我设置这个因为我有这个accounts-container,当点击应该是abouve content-container现在这里是它的样子

在此输入图像描述

正如你在右上角看到的那样,accounts-container但是发生了什么是div content-container不再可以点击任何想法?

html javascript css jquery

4
推荐指数
1
解决办法
104
查看次数

将两列显示为一列

我想选择两列并将其作为一列显示在我的控制器中。这是我目前拥有的代码:

public function assignment()
{
    $title = "View Parent Assignment";
    $vpc   = DB::table('dbo_guardianchild')
                ->join('dbo_students', 'dbo_guardianchild.StudentID', '=' , 'dbo_students.StudentID')
                ->join('dbo_guardianinformation' , 'dbo_guardianchild.GuardianInformationID' , '=' , 'dbo_guardianinformation.GuardianInformationID')
                ->select('dbo_students.StudentID' , 'dbo_students.FirstName AS sFname' , 'dbo_students.LastName AS sLname')
                ->get();
}
Run Code Online (Sandbox Code Playgroud)

关于如何将dbo_students.FirstNamedbo_students.LastName合并为一列的任何想法?

laravel laravel-4 laravel-4.2

1
推荐指数
1
解决办法
1891
查看次数

在laravel 4中使用bootstrap datepicker时,在昨天之前禁用日期

我目前有一个接受日期的输入类型.在前端,我希望用户无法选择今天之前的日期.我已经使用laravel验证进行了后端验证,after:date但我也希望在前端,用户无法在当前日期之前选择日期.在我的表格中我有这个代码:

<div class="form-group">
    {{ Form::label('ddate', 'Expected Delivery Date') }}
    {{ Form::input('date', 'date', Input::old('date'), ['class'=>'datepicker', 'placeholder' => 'Date']) }}<span class="errmsg" style="color:red"><i>{{ $errors->first('date', ':message') }}</i></span>
  </div>
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

jquery datepicker laravel laravel-4

1
推荐指数
1
解决办法
750
查看次数

z-index不使div出现在另一个div的顶部

索引和我有问题.我有这个按钮,当点击它,它将显示内容,但它不会重叠前面的div如果我也试图设置其z-index点击这里是我的代码到目前为止

<script type="text/javascript">
function change()
{
    alert("Asd");
    $('#account-container').css('z-index', 11);
}
Run Code Online (Sandbox Code Playgroud)

这就是它的样子 在此输入图像描述

我应该怎么做的任何想法?非常感谢

html javascript css jquery

1
推荐指数
1
解决办法
1964
查看次数